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; }
public function __construct($params = array()) { parent::__construct($params); $this->_type_id = 2; return $this; }