/** * prepare * * @param void * * @return bool **/ public function prepare() { parent::prepare(); if ($this->mObject->isNew()) { } $this->mCategoryManager['pub_id'] = new Trpg_CategoryManager($this->mAsset->mDirname, 'pub_id'); return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { parent::prepare(); if ($this->mObject->isNew()) { $this->mObject->set('rpg_id', $this->_getRpgId()); $this->mObject->set('pubyear', date('Y', time())); } $this->mObject->loadRpg(); if ($this->mObject->get('pub_id') == 0) { $this->mObject->set('pub_id', $this->mObject->mRpg->get('pub_id')); } $this->mCategoryManager['pub_id'] = new Trpg_CategoryManager($this->mAsset->mDirname, 'pub_id'); return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { return parent::prepare() && is_object($this->mObject); }