Esempio n. 1
0
 protected function _beforeSave()
 {
     if ($this->_content !== null) {
         $this->setSize(strlen($this->_content));
     }
     return parent::_beforeSave();
 }
Esempio n. 2
0
 protected function _beforeSave()
 {
     if (!empty($this->_logEvents)) {
         $this->setData('log', Zend_Json::encode($this->_logEvents));
     }
     // make sure we have a message id
     $this->getMessageId();
     parent::_beforeSave();
 }