Esempio n. 1
0
 /**
  * Start up the storage manager and bind it to a given MidgardObject.
  * The passed object must be a MidCOM DBA object, otherwise the system bails with
  * generate_error. In this case, no automatic conversion is done, as this would
  * destroy the reference.
  *
  * @param midcom_helper_datamanagerschema &$schema The data schema to use for processing.
  * @param MidCOMDBAObject &$object A reference to the DBA object to user for Data I/O.
  */
 public function __construct(&$schema, &$object)
 {
     parent::__construct($schema);
     $this->object =& $object;
 }
Esempio n. 2
0
 /**
  * TODO
  *
  * @param midcom_helper_datamanager_schema &$schema The data schema to use for processing.
  * @param Array $defaults The defaults to use as "artificial" storage. This can be omitted
  *     safely.
  */
 function __construct(&$schema, $defaults = array())
 {
     parent::__construct($schema);
     $this->_defaults = $defaults;
 }