本文整理汇总了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;
}