Example #1
0
 public function save()
 {
     if (!$this->getId()) {
         $this->setTypeId($this->_type_id);
     }
     parent::save();
     if (!$this->getIsDeleted()) {
         if (!$this->getLink()->getId()) {
             $this->getLink()->setWeblinkId($this->getId());
         }
         $this->getLink()->save();
     }
     return $this;
 }
Example #2
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->_type_id = 2;
     return $this;
 }