Exemplo n.º 1
0
 public function loadFromData(array $loadColumns = array()) {
     $this->user->loadFromData($loadColumns);
     $this->accountUser->set('accountuserid', $this->user->get('accountuserid'));
     $this->accountUser->load();
     $this->authUser->set('authid', $this->accountUser->get('authid'));
     $this->authUser->load();
 }
Exemplo n.º 2
0
 private function getAuthUserFromRequest($params)
 {
     if ($params->exists('requestid') && $params->get('requestid') != null && $params->get('requestid') != '') {
         $requestid = $params->get('requestid');
     } else {
         return null;
     }
     $errorMessage = $this->getInvalidPasswordRequestErrorMessage();
     $passwordRequest = new Gpf_Db_PasswordRequest();
     $passwordRequest->setId($requestid);
     try {
         $passwordRequest->load();
     } catch (Gpf_Exception $e) {
         return null;
     }
     $user = new Gpf_Db_AuthUser();
     $user->setId($passwordRequest->getAuthUser());
     try {
         $user->load();
     } catch (Gpf_Exception $e) {
         return null;
     }
     return $user;
 }