protected function accountValid($accountId) {
     try {
         $account = new Pap_Account();
         $account->setId($accountId);
         $account->load();
     } catch (Exception $e) {
         return false;
     }
     return true;
 }
Example #2
0
 /**
  * @throws Gpf_DbEngine_NoRowException
  * @throws Gpf_DbEngine_TooManyRowsException
  * @return Pap_Account
  */
 public static function getAccount($accountId) {
     $account = new Pap_Account();
     $account->setId($accountId);
     $account->load();
     return $account;
 }