Example #1
0
File: ORM.php Project: techart/tao
 public function __construct(DB_ORM_Mapper $parent = null)
 {
     parent::__construct($parent);
     CMS_ORM_Entity::$db = $this;
     CMS_Controller_Base::$db = $this;
     $this->cache = WS::env()->cache;
 }
Example #2
0
File: ORM.php Project: techart/tao
 public function setup()
 {
     parent::setup();
     $this->assign(array('parent_id' => 0, 'title' => '', 'value' => '', 'valuesrc' => '', 'parms' => '', 'parmsrc' => '', 'vartype' => '', 'component' => '', 'site' => '', 'full' => 0, 'ord' => 0));
     return $this;
 }
Example #3
0
 public function setup()
 {
     parent::setup();
     $this->_created = 0;
     $this->_created_time = date('Y-m-d H:m:s');
     $this->isactive = 0;
     $this->user_id = (int) WS::env()->auth->user->id;
     return $this;
 }
Example #4
0
File: Tree.php Project: techart/tao
 public function setup()
 {
     $this->enable_dispatch()->dispatcher->add_subscriber(Tree_DB_MPT::EntitySubscriber($this));
     parent::setup($attrs, $mapper);
 }