コード例 #1
0
ファイル: Profile.php プロジェクト: PTZ2002/decoram
 /**
  * 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
ファイル: Profile.php プロジェクト: yuracher/yii-user
 public function afterSave()
 {
     if (get_class(Yii::app()) == 'CWebApplication' && Profile::$regMode == false) {
         Yii::app()->user->updateSession();
     }
     return parent::afterSave();
 }
コード例 #3
0
ファイル: Profile.php プロジェクト: ivarsju/yii-user
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('LoggableBehavior' => array('class' => 'LoggableBehavior')));
 }
コード例 #4
0
 public function afterFind()
 {
     $this->_modelSave = $this->attributes;
     return parent::afterFind();
 }