import v1.1.0_RC2 | 2009-09-20

This commit is contained in:
2019-07-17 22:19:00 +02:00
parent 3b7ba80568
commit 38c146901c
2504 changed files with 101817 additions and 62316 deletions

View File

@ -17,7 +17,7 @@
* @subpackage Ec2
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
* @version $Id: Response.php 16971 2009-07-22 18:05:45Z mikaelkael $
*/
require_once 'Zend/Http/Response.php';
@ -33,7 +33,7 @@ class Zend_Service_Amazon_Ec2_Response {
/**
* XML namespace used for EC2 responses.
*/
const XML_NAMESPACE = 'http://ec2.amazonaws.com/doc/2008-12-01/';
protected $_xmlNamespace = 'http://ec2.amazonaws.com/doc/2009-04-04/';
/**
* The original HTTP response
@ -96,7 +96,7 @@ class Zend_Service_Amazon_Ec2_Response {
} else {
$this->_xpath = new DOMXPath($document);
$this->_xpath->registerNamespace('ec2',
self::XML_NAMESPACE);
$this->getNamespace());
}
}
@ -136,4 +136,25 @@ class Zend_Service_Amazon_Ec2_Response {
return $this->_document;
}
}
/**
* Return the current set XML Namespace.
*
* @return string
*/
public function getNamespace()
{
return $this->_xmlNamespace;
}
/**
* Set a new XML Namespace
*
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->_xmlNamespace = $namespace;
}
}