MidCOM DBA proxy class.

This is useful for loading objects on-demand

package midcom

 Methods

__call ($method, $arguments)

Parameters

$method

$arguments

__construct ($identifier, $classname)

Constructor

Parameters

$identifier

$classname

__get (string $property)

Magic getter for object property mapping

Parameters

$property

stringName of the property

__isset (string $property)

Magic isset test for object property mapping

Parameters

$property

stringName of the property

__set (string $property, mixed $value)

Magic setter for object property mapping

Parameters

$property

stringName of the property

$value

mixedProperty value

__sleep ()

This is called when the object is serialized (f.x.

written to memcache). It eliminates the object to increase performance

_load_object ()

 Properties

 

string $__midcom_class_name__

MidCOM DBA classname
 

mixed $__identifier

MidCOM DBA object identifier, can be ID or GUID
 

object $__object

MidCOM DBA object
 

boolean $__tried_to_load

Flag that indicates whether or not we already tried to load this object