/** * setup object. */ protected function _setupObject() { $id = $this->_getId(); $this->mObjectHandler =& $this->_getHandler(); $this->mObject =& $this->mObjectHandler->get($id); if ($this->mObject == null && $this->_isEnableCreate()) { $this->mObject =& $this->mObjectHandler->create(); } }
function &get($id) { $obj =& parent::get($id); if (is_object($obj)) { $obj->_loadGroups(); } return $obj; }
/** * set object. * * @param void */ protected function _setupObject() { $id = $this->_getId(); $this->mObjectHandler =& $this->_getHandler(); $this->mObject =& $this->mObjectHandler->get($id); }