/** * Returns the static model of the specified AR class. * @return CActiveRecord the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
public function afterSave() { if (get_class(Yii::app()) == 'CWebApplication' && Profile::$regMode == false) { Yii::app()->user->updateSession(); } return parent::afterSave(); }
public function behaviors() { return array_merge(parent::behaviors(), array('LoggableBehavior' => array('class' => 'LoggableBehavior'))); }
public function afterFind() { $this->_modelSave = $this->attributes; return parent::afterFind(); }