Example #1
0
 public function checkUsernameExists()
 {
     if ($this->_glbUser === false) {
         $this->_glbUser = GlbUser::findByUsername($this->username);
     }
     if ($this->_glbUser !== null) {
         return $this->_glbUser;
     }
     return $this->_glbUser;
 }
Example #2
0
 public function getUserByID($id)
 {
     return GlbUser::findOne($id);
 }