AdminUser::model PHP 메소드

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : AdminUser
$className string active record class name.
리턴 AdminUser the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

예제 #1
1
 public function actionLogout()
 {
     alog(at("User logged out."));
     AdminUser::model()->deleteAll('userid=:id', array(':id' => Yii::app()->user->id));
     Yii::app()->user->logout();
     fok(at('Thank You! You are now logged out.'));
     $this->redirect(array('/login'));
 }
All Usage Examples Of AdminUser::model