Exemplo n.º 1
0
 /**
  * @return null|PublisherCategory
  */
 public function category()
 {
     if (!isset($this->_category)) {
         $this->_category = $this->publisher->getCategoryHandler()->get($this->getVar('categoryid'));
     }
     return $this->_category;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }