Public Member Functions | Protected Member Functions | Protected Attributes

ObjectFactory Class Reference

Public Member Functions

 getObject ($objName, $new=0)
 createObject ($objName, &$xmlArr=null)
 setObject ($objName, $obj)
 getAllObjects ()

Protected Member Functions

 constructObject ($objName, &$xmlArr=null)

Protected Attributes

 $_objsRefMap = array()

Detailed Description

Definition at line 26 of file ObjectFactory.php.


Member Function Documentation

constructObject ( objName,
&$  xmlArr = null 
) [protected]

Construct an instance of an object

Parameters:
string$objNameobject name
array$xmlArrxml array
Returns:
object the instance of the object

Definition at line 101 of file ObjectFactory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

createObject ( objName,
&$  xmlArr = null 
)

Create a new metadata based object instance

Parameters:
string$objNamename of object will be create
array$xmlArrpropery array of object
Returns:
object

Definition at line 73 of file ObjectFactory.php.

Here is the call graph for this function:

getAllObjects (  )

Get all object from the internal object array (object cache)

Returns:
array array of object

Definition at line 89 of file ObjectFactory.php.

getObject ( objName,
new = 0 
)

Get a metadata based object instance. It returns the instance the internal object map or create a new one and save it in the map.

Parameters:
string$objNamename of object that want to get
Returns:
object

Definition at line 49 of file ObjectFactory.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file: