Esempio n. 1
0
 /**
  * Делегирование не найденых методов union маппера.
  * В основном используется для map_ методов union мапперов
  */
 public function __call($method, $args)
 {
     try {
         return parent::__call($method, $args);
     } catch (Core_MissingMethodException $e) {
     }
     foreach ($this->options['union'] as $key => $mapper) {
         $mapper = call_user_func_array(array($mapper, $method), $args);
         $this->union($mapper, $key);
     }
     return $this;
 }
Esempio n. 2
0
File: MPT.php Progetto: techart/tao
 protected function setup()
 {
     $this->columns('id', 'entity_id', 'parent_id', 'level', 'ord')->classname('Tree.DB.MPT.JoinEntity')->key('id');
     return parent::setup();
 }
Esempio n. 3
0
File: ORM.php Progetto: techart/tao
 protected function after_setup()
 {
     $this->setup_config();
     return parent::after_setup();
 }
Esempio n. 4
0
 /**
  * @covers DB_ORM_SQLMapper::__call
  * @todo   Implement test__call().
  */
 public function test__call()
 {
     var_dump($this->object->any('any'));
     die;
 }