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

Class: Mai

Source Location: /Mai.php

Class Overview


Mai is an overall class for Mai.


Author(s):

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

Copyright:

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

Variables

Constants

Methods



Class Details

[line 43]
Mai is an overall class for 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 Variables

static $allowedNumbers = array(
       self::WN_ENKELVOUD,
       self::WN_MEERVOUD
    )

[line 183]



Tags:

var:  Allowed numbers (for words).
access:  public

Type:   array


[ Top ]

static $allowedPersons = array(
       self::WP_1_ENKELVOUD,
       self::WP_1_MEERVOUD,
       self::WP_2_ENKELVOUD,
       self::WP_2_MEERVOUD,
       self::WP_3_ENKELVOUD,
       self::WP_3_MEERVOUD
    )

[line 191]



Tags:

var:  Allowed persons (for words).
access:  public

Type:   array


[ Top ]

static $allowedTextTypes = array(self::MSG_TYPE_NORMAL, self::MSG_TYPE_COMMAND, self::MSG_TYPE_LOGOUT)

[line 144]



Tags:

var:  Allowed text types.
access:  public

Type:   array


[ Top ]

static $allowedTimes = array(
       self::WVT_TEGENWOORDIGE_TIJD,
       self::WVT_VERLEDEN_TIJD
    )

[line 175]



Tags:

var:  Allowed times.
access:  public

Type:   array


[ Top ]

static $allowedWordTypes = array(
       self::WT_AANWIJZEND_VOORNAAMWOORD, self::WT_AFSCHEID, self::WT_BEGROETING,
       self::WT_BEZITTELIJK_VOORNAAMWOORD, self::WT_BIJVOEGELIJK_NAAMWOORD, self::WT_HOOFDTELWOORD,
       self::WT_LIDWOORD, self::WT_NAAM, self::WT_PERSOONLIJK_VOORNAAMWOORD,
       self::WT_PERSOONLIJK_VOORNAAMWOORD_VOORWERP, self::WT_PLAATSNAAM, self::WT_RANGTELWOORD,
       self::WT_VOEGWOORD, self::WT_VOORZETSEL, self::WT_VRAGEND_VOORNAAMWOORD,
       self::WT_WERKWOORD, self::WT_ZELFSTANDIG_NAAMWOORD
    )

[line 163]



Tags:

var:  Allowed word types.
access:  public

Type:   array


[ Top ]

static $_autoloader =  false

[line 134]



Tags:

var:  Define TRUE when using an autoloader. This disables the require_once statements.
access:  protected

Type:   boolean


[ Top ]

static $_baseDir =

[line 139]



Tags:

var:  Directory of the Mai class.
access:  protected

Type:   string


[ Top ]

static $_env =  self::ENV_PRODUCTION

[line 129]



Tags:

var:  The enviroment of Mai.
access:  protected

Type:   integer


[ Top ]

static $_envAllowed = array(self::ENV_DEVELOPMENT, self::ENV_PRODUCTION, self::ENV_STAGING)

[line 158]



Tags:

var:  Allowed environments.
access:  protected

Type:   array


[ Top ]

static $_envNames = array(
       Mai::ENV_DEVELOPMENT    => 'development',
       Mai::ENV_PRODUCTION      => 'production',
       Mai::ENV_STAGING      => 'staging'
   )

[line 149]



Tags:

var:  The names of the environments
access:  public

Type:   array


[ Top ]

static $_init =  false

[line 203]



Tags:

var:  Whether Mai has been setup.
access:  protected

Type:   Boolean


[ Top ]

static $_instance =

[line 124]



Tags:

var:  Singleton instance
access:  protected

Type:   Mai


[ Top ]



Class Methods


static method baseDir [line 361]

static string baseDir( )

Return the location of the Mai class.



Tags:

access:  public


[ Top ]

static method end [line 273]

static void end( )

End Mai



Tags:

access:  public


[ Top ]

static method getAutoloader [line 352]

static boolean getAutoloader( )

Return the value of $_autoloader.



Tags:

access:  public


[ Top ]

static method getEnv [line 328]

static string getEnv( )

Return the environment type.



Tags:

access:  public


[ Top ]

static method getInstance [line 216]

static Mai_Config getInstance( )

Retrieve singleton instance



Tags:

access:  public


[ Top ]

static method init [line 231]

static void init( )

Start Mai.



Tags:

access:  public


[ Top ]

static method isInit [line 294]

static boolean isInit( )

Returns the value of $_init.



Tags:

access:  public


[ Top ]

static method setAutoloader [line 338]

static void setAutoloader( boolean $value)

Set whether classes are loaded using a autoloader or not.



Tags:

access:  public


Parameters:

boolean   $value  

[ Top ]

static method setEnv [line 304]

static void setEnv( $env $env)

Set the environment type.



Tags:

access:  public


Parameters:

$env   $env  

[ Top ]

constructor __construct [line 209]

void __construct( )

Private constructor to prevent creation of this object.



Tags:

access:  private


[ Top ]

method __clone [line 372]

void __clone( )

Cloning of a singleton class is not allowed.



Tags:

access:  public


[ Top ]


Class Constants

AN_RESPONSE_FULL_PATTERN =  1

[line 113]

Analyzer response types


[ Top ]

ENV_DEVELOPMENT =  2

[line 56]


[ Top ]

ENV_PRODUCTION =  1

[line 55]

Environments


[ Top ]

ENV_STAGING =  3

[line 57]


[ Top ]

MSG_TYPE_COMMAND =  2

[line 49]


[ Top ]

MSG_TYPE_LOGOUT =  3

[line 50]


[ Top ]

MSG_TYPE_NORMAL =  1

[line 48]

Text types


[ Top ]

STORAGE_TYPE_ARRAY =  1

[line 118]

Storage types


[ Top ]

STORAGE_TYPE_CLASS =  2

[line 119]


[ Top ]

WN_ENKELVOUD =  1

[line 95]

Word numbers (one or multiple)


[ Top ]

WN_MEERVOUD =  2

[line 96]


[ Top ]

WP_1_ENKELVOUD =  1

[line 101]

Persons (ik, jij, etc.)


[ Top ]

WP_1_MEERVOUD =  2

[line 102]


[ Top ]

WP_2_ENKELVOUD =  3

[line 104]


[ Top ]

WP_2_MEERVOUD =  4

[line 105]


[ Top ]

WP_3_ENKELVOUD =  5

[line 107]


[ Top ]

WP_3_MEERVOUD =  6

[line 108]


[ Top ]

WT_AANWIJZEND_VOORNAAMWOORD =  9

[line 76]


[ Top ]

WT_AFSCHEID =  16

[line 83]


[ Top ]

WT_BEGROETING =  15

[line 82]


[ Top ]

WT_BEZITTELIJK_VOORNAAMWOORD =  10

[line 77]


[ Top ]

WT_BIJVOEGELIJK_NAAMWOORD =  1

[line 68]

Word types (Dutch)



Tags:


[ Top ]

WT_HOOFDTELWOORD =  3

[line 70]


[ Top ]

WT_LIDWOORD =  2

[line 69]


[ Top ]

WT_NAAM =  14

[line 81]


[ Top ]

WT_PERSOONLIJK_VOORNAAMWOORD =  7

[line 74]


[ Top ]

WT_PERSOONLIJK_VOORNAAMWOORD_VOORWERP =  8

[line 75]


[ Top ]

WT_PLAATSNAAM =  17

[line 84]


[ Top ]

WT_RANGTELWOORD =  4

[line 71]


[ Top ]

WT_VOEGWOORD =  5

[line 72]


[ Top ]

WT_VOORZETSEL =  11

[line 78]


[ Top ]

WT_VRAGEND_VOORNAAMWOORD =  6

[line 73]


[ Top ]

WT_WERKWOORD =  12

[line 79]


[ Top ]

WT_ZELFSTANDIG_NAAMWOORD =  13

[line 80]


[ Top ]

WVT_TEGENWOORDIGE_TIJD =  1

[line 89]

Verbs (times)


[ Top ]

WVT_VERLEDEN_TIJD =  2

[line 90]


[ Top ]



Documentation generated on Mon, 27 Jul 2009 19:55:09 +0200 by phpDocumentor 1.4.1