diff -r 000000000000 -r 4eba9c11703f web/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,89 @@ +errorCode = $response->getErrorCode(); + $this->errorMessage = $response->getErrorMessage(); + $this->statusCode = $response->getStatusCode(); + $this->statusMessage = $response->getStatusMessage(); + $this->searchResult = $response; + } + + /** + * returns the raw search result + * + * @return Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType + */ + public function getSearchResult() + { + return $this->searchResult; + } + + /** + * overwrite hasError to not handle 0103 error (empty result) + * + * @return boolean + */ + public function hasError() + { + $result = parent::hasError(); + if (!$result && $this->statusCode == '0103') { + $result = false; + } + return $result; + } +}