/**
  * Returns the static model of the specified AR class.
  * @return SysMessage the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
Example #2
0
 protected function afterValidate()
 {
     parent::afterValidate();
     $this->password = $this->encrypt($this->password);
 }