phpDocumentor openbiz.bin
[ class tree: openbiz.bin ] [ index: openbiz.bin ] [ all elements ]

Class: ObjectFactory

Source Location: /ObjectFactory.php

Class ObjectFactory

Class Overview

ObjectFactory is factory class to create metadata based objects (bizview, bizform, bizdataobj...)

Located in /ObjectFactory.php [line 25]



		
				Author(s):
		
  • rocky swen
Information Tags:
Copyright:  © 2005-2009, Rocky Swen

Properties

Methods

[ Top ]
Property Summary
array   $_objsRefMap   Internal array for cache MetaObject

[ Top ]
Method Summary
ObjectFactory   __construct()  
void   __destruct()  
object the   constructObject()   Create an instance of an object
object   CreateObject()   ObjectFactory::CreateObject() - To create a new metadata based object instance
array   GetAllObjects()   Get all object from the internal object array (object cache)
object   GetObject()   ObjectFactory::GetObject() - To get a metadata based object instance.

[ Top ]
Properties
array   $_objsRefMap = array() [line 31]

Internal array for cache MetaObject

API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 33]

  ObjectFactory __construct( )


API Tags:
Access:  public


[ Top ]
Destructor __destruct  [line 37]

  void __destruct( )


API Tags:
Access:  public


[ Top ]
constructObject  [line 94]

  object the constructObject( string $objName, [array &$xmlArr = null]  )

Create an instance of an object

Parameters:
string   $objName:  object name
array   $xmlArr:  xml array

API Tags:
Return:  instance of the object
Access:  protected


[ Top ]
CreateObject  [line 71]

  object CreateObject( string $objName, [array &$xmlArr = null]  )

ObjectFactory::CreateObject() - To create a new metadata based object instance

Parameters:
string   $objName:  name of object will be create
array   $xmlArr:  propery array of object

API Tags:
Access:  public


[ Top ]
GetAllObjects  [line 83]

  array GetAllObjects( )

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


API Tags:
Return:  array of object
Access:  public


[ Top ]
GetObject  [line 48]

  object GetObject( string $objName  )

ObjectFactory::GetObject() - To 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   $objName:  name of object that want to get

API Tags:
Access:  public


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:03:10 -0800 by phpDocumentor 1.3.0RC3