Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php
Go to the documentation of this file.
00001 <?php
00026 require_once 'Zend/Service/DeveloperGarden/Response/BaseType.php';
00027 
00031 require_once 'Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponseType.php';
00032 
00041 class Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponse
00042     extends Zend_Service_DeveloperGarden_Response_BaseType
00043 {
00048     public $searchResult = null;
00049 
00056     public function __construct(
00057         Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType $response
00058     ) {
00059         $this->errorCode     = $response->getErrorCode();
00060         $this->errorMessage  = $response->getErrorMessage();
00061         $this->statusCode    = $response->getStatusCode();
00062         $this->statusMessage = $response->getStatusMessage();
00063         $this->searchResult  = $response;
00064     }
00065 
00071     public function getSearchResult()
00072     {
00073         return $this->searchResult;
00074     }
00075 
00081     public function hasError()
00082     {
00083         $result = parent::hasError();
00084         if (!$result && $this->statusCode == '0103') {
00085             $result = false;
00086         }
00087         return $result;
00088     }
00089 }
 All Data Structures Namespaces Files Functions Variables Enumerations