/** * Tests if a response is valid and prints out * a error trace if not * * @param AbstractResponseType $res * @return boolean */ protected function testValid($res) { if ($res->getAck() == AckCodeType::CodeType_Success) { return true; } else { echo $this->proxy->getErrorsToString($res, true); return false; } }
/** * Checks if the response had failures * * @param AbstractResponseType $response A response returned by any of the eBay API calls * @return Boolean */ function isFailure($response) { return $response->getAck() == 'Failure'; }