Class AObjectRegistry

Description

A Singleton registry for all AObject objects

All AObject subclasses that call parent::__construct() will be automatically added to this registry.

Located in /lib/AObjectRegistry.php (line 25)


	
			
Variable Summary
 static mixed $instanceObject
 mixed $IDCounter
 mixed $objects
Method Summary
 void __construct ()
 void addObject (AObject $object)
 void generateID (AObject $object)
 AObject|false getObjectByID (mixed $id)
 ArrayObject getObjects ()
 void unsetObject ( $object)
Variables
static mixed $instanceObject = null (line 33)
  • access: private
mixed $IDCounter (line 30)
  • access: private
mixed $objects (line 28)
  • access: private
Methods
Constructor __construct (line 42)

__construct

  • access: private
void __construct ()
addObject (line 67)

Adds an AObject to the index, and assigns it a unique ID

  • access: public
void addObject (AObject $object)
generateID (line 87)

Assigns an AObject a unique ID

  • access: private
void generateID (AObject $object)
getObjectByID (line 99)

Returns the object of id $id, if it exists.

  • return: the found object or false if not found
  • access: public
AObject|false getObjectByID (mixed $id)
  • mixed $id
getObjects (line 77)

returns an ArrayObject containing all AObjects

  • access: public
ArrayObject getObjects ()
instance (line 52)

returns the instance of the Alia object

  • access: public
Alia instance ()
unsetObject (line 108)
  • access: public
void unsetObject ( $object)
  • $object

Documentation generated on Fri, 11 Jul 2008 13:28:42 -0400 by phpDocumentor 1.4.2