/** * @return null|PublisherCategory */ public function category() { if (!isset($this->_category)) { $this->_category = $this->publisher->getCategoryHandler()->get($this->getVar('categoryid')); } return $this->_category; }
/** * @param bool $sendNotifications * @param bool $force * * @return mixed */ public function store($sendNotifications = true, $force = true) { $ret = $this->publisher->getCategoryHandler()->insert($this, $force); if ($sendNotifications && $ret && $this->isNew()) { $this->sendNotifications(); } $this->unsetNew(); return $ret; }