Ejemplo n.º 1
0
 /**
  * @param $authId
  * @return boolean
  */
 private function isLastUserWithAuthID($authId)
 {
     $guser = new Gpf_Db_User();
     $guser->setAuthId($authId);
     try {
         $guser->loadFromData(array(Gpf_Db_Table_Users::AUTHID));
     } catch (Gpf_Exception $e) {
         return false;
     }
     return true;
 }
Ejemplo n.º 2
0
 private function getAccountUser($authUserId)
 {
     $accountUser = new Gpf_Db_User();
     $accountUser->setAuthId($authUserId);
     try {
         $accountUser->loadFromData(array(Gpf_Db_Table_Users::AUTHID));
     } catch (Exception $e) {
         return null;
     }
     return $accountUser;
 }