Controllers
[ class tree: Controllers ] [ index: Controllers ] [ all elements ]

Class: TalkController

Source Location: /modules/default/controllers/TalkController.php

Class Overview

Zend_Controller_Action
   |
   --TalkController

TalkController


Author(s):

  • Wouter Bulten (wouterbulten@mai-ai.org)

Copyright:

  • Copyright (C) 2009 Mai (Me Artificial Intelligence)

Methods



Class Details

[line 51]
TalkController

Possible responses:

[1] 'invalid-session' When no session excists. [2] 'invalid-input' When the input is invalid or not set. [3] 'no-message' No message set [4] '...' A response from Mai




Tags:

author:  Wouter Bulten (wouterbulten@mai-ai.org)
copyright:  Copyright (C) 2009 Mai (Me Artificial Intelligence)
link:  http://www.launchpad.net/mai
license:  GNU General Public License version 3 (GPLv3)


[ Top ]


Class Methods


method endMai [line 242]

void endMai( )

End Mai library.



Tags:

access:  private


[ Top ]

method getCacheWords [line 251]

array getCacheWords( )

Create a new instance of Mai_Cache_Words and loads the cache file defined in config.ini



Tags:

return:  Words from the cache file.
access:  private


[ Top ]

method getCsvWords [line 270]

array getCsvWords( $letterPair)

Create a new instance of Mai_Cache_Words and loads the csv cache file defined in config.ini



Tags:

return:  Words from the cache file.
access:  private


Parameters:

   $letterPair  

[ Top ]

method getFirstLettersWords [line 322]

array getFirstLettersWords( $inputContainer)

Returns an array with the first 3 letters of every word



Tags:

access:  private


Parameters:

Mai_Container_Input   $inputContainer  

[ Top ]

method getPatternsFromDb [line 305]

array getPatternsFromDb( )

Selects patterns from the database.



Tags:

access:  private


[ Top ]

method getWordsFromDb [line 289]

Array getWordsFromDb( )

Selects all the words from the db for the current user.



Tags:

return:  Words from the db
access:  private


[ Top ]

method indexAction [line 56]

void indexAction( )

Combines the different components of Mai Lib to parse the text of the user.



Tags:

access:  public


[ Top ]

method processNormal [line 120]

void processNormal( $inputText $inputText)

Process normal text.



Tags:

access:  private


Parameters:

$inputText   $inputText  

[ Top ]

method startUpMai [line 222]

void startUpMai( )

Start up Mai Library



Tags:

access:  private


[ Top ]


Documentation generated on Mon, 27 Jul 2009 19:51:59 +0200 by phpDocumentor 1.4.1