/** * implement own parsing mechanism to fix broken wsdl implementation */ public function parse() { parent::parse(); if (is_array($this->ipAddressLocation)) { foreach ($this->ipAddressLocation as $address) { $address->parse(); } } elseif ($this->ipAddressLocation instanceof Zend_Service_DeveloperGarden_Response_IpLocation_IPAddressLocationType) { $this->ipAddressLocation->parse(); } return $this; }
/** * parse the response data and throws exceptions * * @throws Zend_Service_DeveloperGarden_Response_Exception * @return mixed */ public function parse() { $retVal = $this->getResponse(); if ($retVal === null) { $this->statusCode = 9999; $this->statusMessage = 'Internal response property not found.'; } else { $this->statusCode = $retVal->getStatusCode(); $this->statusMessage = $retVal->getStatusMessage(); } parent::parse(); return $retVal; }
/** * implement parsing * */ public function parse() { parent::parse(); if ($this->isInCity === null) { // require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php'; $this->isInCity = new Zend_Service_DeveloperGarden_Response_IpLocation_CityType(); } if ($this->isInRegion === null) { // require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php'; $this->isInRegion = new Zend_Service_DeveloperGarden_Response_IpLocation_RegionType(); } if ($this->isInGeo === null) { // require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php'; $this->isInGeo = new Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType(); } return $this; }
/** * implement parsing * */ public function parse() { parent::parse(); if ($this->isInCity === null) { $this->isInCity = new Zend_Service_DeveloperGarden_Response_IpLocation_CityType(); } if ($this->isInRegion === null) { $this->isInRegion = new Zend_Service_DeveloperGarden_Response_IpLocation_RegionType(); } if ($this->isInGeo === null) { $this->isInGeo = new Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType(); } return $this; }