示例#1
0
 public function getUser()
 {
     $userExists = $this->checkUsernameExists();
     if ($userExists !== false) {
         $company_id = $this->_glbUser->company_id;
         if ($this->_fncUser === false) {
             Yii::$app->session->set('company_id', $company_id);
             $this->_fncUser = FncUser::findByUsername($this->username);
         }
     }
     return $this->_fncUser;
 }
示例#2
0
 private function initUserTables($company_id)
 {
     $user = new User();
     return $user->initUserTables($company_id);
 }