Esempio n. 1
0
 /**
  * Loads URI and Input objects into the controller.
  * Check if the requested environment the system does supports.
  */
 function __construct($instance)
 {
     $this->db = Registry::factory('Database_Query_Builder');
     $this->_data_types = $this->_getDataTypes();
     $this->eav_instance = $this->_checkInstance($instance);
     $this->_aData = Model_Registry::instance(true);
 }
Esempio n. 2
0
 /**
  * Loads the result from database into the local object.
  * @param mixed
  */
 public function __construct($user)
 {
     if ($user instanceof Database_Mapper_Result) {
         // Create registry object
         $this->_aData = Model_Registry::instance();
         // Deploy properties
         foreach ($user as $prop => $val) {
             $this->_aData->{$prop} = $val;
         }
     }
 }
Esempio n. 3
0
 /**
  * Clear data object.
  * @return void
  */
 protected function _clearData()
 {
     $this->_aData = Model_Registry::instance(true);
 }
Esempio n. 4
0
 /**
  * Loads URI and Input objects into the controller.
  * Check if the requested environment supports by the system.
  */
 function __construct()
 {
     $this->_aData = Model_Registry::instance(true);
     $this->db = Registry::factory('Database_Query_Builder', null, true, true);
 }