/** * Returns account identifier for specific user and account email. * * @param int $iUserId Identifier of user that contains account. * @param string $sEmail Email of account that is looked up. * * @return int | false */ public function getUserAccountId($iUserId, $sEmail) { $iResult = false; if ($this->oConnection->Execute($this->oCommandCreator->getUserAccountIdQuery($iUserId, $sEmail))) { $oRow = null; while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $iResult = $oRow->id_acct; } } $this->throwDbExceptionIfExist(); return $iResult; }