本文整理匯總了PHP中Zend_Service_DeveloperGarden_Response_BaseType::parse方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Service_DeveloperGarden_Response_BaseType::parse方法的具體用法?PHP Zend_Service_DeveloperGarden_Response_BaseType::parse怎麽用?PHP Zend_Service_DeveloperGarden_Response_BaseType::parse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Service_DeveloperGarden_Response_BaseType
的用法示例。
在下文中一共展示了Zend_Service_DeveloperGarden_Response_BaseType::parse方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: parse
/**
* 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;
}
示例2: parse
/**
* 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;
}
示例3: parse
/**
* 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;
}