本文整理汇总了PHP中Zend_Service_DeveloperGarden_Response_BaseType类的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Service_DeveloperGarden_Response_BaseType类的具体用法?PHP Zend_Service_DeveloperGarden_Response_BaseType怎么用?PHP Zend_Service_DeveloperGarden_Response_BaseType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Zend_Service_DeveloperGarden_Response_BaseType类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hasError
/**
* 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;
}
示例2: 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;
}
示例3: 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;
}
示例4: 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;
}