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; }
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; }
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; }
public function setup() { $this->enable_dispatch()->dispatcher->add_subscriber(Tree_DB_MPT::EntitySubscriber($this)); parent::setup($attrs, $mapper); }