示例#1
0
 /**
  * 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);
 }
示例#2
0
 public function afterSave()
 {
     if (get_class(Yii::app()) == 'CWebApplication' && Profile::$regMode == false) {
         Yii::app()->user->updateSession();
     }
     return parent::afterSave();
 }
示例#3
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('LoggableBehavior' => array('class' => 'LoggableBehavior')));
 }
 public function afterFind()
 {
     $this->_modelSave = $this->attributes;
     return parent::afterFind();
 }