/** * @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; }
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; }