コード例 #1
0
 protected function _afterLoad()
 {
     if (is_string($this->getData('scope'))) {
         $this->setData('scope', @explode(',', $this->getData('scope')));
     }
     return parent::_afterLoad();
 }
コード例 #2
0
 protected function _afterLoad()
 {
     if (!is_array($this->getData('attachments'))) {
         $this->setData('attachments', @unserialize($this->getData('attachments')));
     }
     return parent::_afterLoad();
 }
コード例 #3
0
 public function _afterLoad()
 {
     if ($this->getDepartmentId()) {
         $this->setDepartmentSavedId($this->getDepartmentId());
     }
     if ($this->getStatus()) {
         $this->setStatusId($this->getStatus());
     }
     if ($this->getPriority()) {
         $this->setSavedPriority($this->getPriority());
     }
     return parent::_afterLoad();
 }