beforeSave() protected method

Strips all html tags out of attributes to be saved.
protected beforeSave ( ) : boolean
return boolean
 protected function beforeSave()
 {
     return parent::beforeSave();
 }
示例#2
0
 protected function beforeSave()
 {
     if (!$this->isNewRecord) {
         $this->_pkBeforeSave = $this->getOldPrimaryKey();
     }
     return parent::beforeSave();
 }