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

Class: Mai_Memory

Source Location: /Mai/Memory.php

Class Overview


Mai_Memory, the memory of Mai (session based).


Author(s):

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

Copyright:

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

Variables

Methods



Class Details

[line 50]
Mai_Memory, the memory of Mai (session based).



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 $_instance =

[line 55]



Tags:

var:  Singleton instance
access:  protected

Type:   Mai_Memory


[ Top ]

$_memory =

[line 60]



Tags:

access:  protected

Type:   Zend_Session_Namespace


[ Top ]

$_memoryItems = array(
      'unknown-words'
   )

[line 65]



Tags:

var:  Items that can be stored in $_memory.
access:  protected

Type:   array


[ Top ]



Class Methods


static method getInstance [line 93]

static Mai_Memory getInstance( )

Retrieve singleton instance



Tags:

access:  public


[ Top ]

constructor __construct [line 74]

void __construct( )

Private constructor to prevent creation of this object.

Store instance of Zend_Session_Namespace




Tags:

access:  private


[ Top ]

method __clone [line 143]

void __clone( )

Cloning of a singleton class is not allowed.



Tags:

access:  public


[ Top ]

method __get [line 127]

mixed __get( string $var)

Get a variable from the memory.



Tags:

access:  public


Parameters:

string   $var  

[ Top ]

method __set [line 111]

void __set( string $var, mixed $value)

Set a value in the memory.



Tags:

access:  public


Parameters:

string   $var  
mixed   $value  

[ Top ]

method __wakeup [line 152]

void __wakeup( )

Function to prevent deserializing



Tags:

access:  public


[ Top ]


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