示例#1
0
文件: User.php 项目: annasoal/newsite
 public function __construct()
 {
     parent::__construct();
     $this->user = MUser::app();
     $this->image = Image::app();
     $this->role = MRole::app();
     $this->check_access('edit_users');
 }
示例#2
0
文件: Auth.php 项目: annasoal/newsite
 private function __construct()
 {
     $this->user = null;
     $this->token = null;
     $this->privs = null;
     $this->users = User::app();
     $this->sessions = Session::app();
 }