import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -41,6 +41,7 @@ require_once 'Zend/Gdata/Geo/Extension/GmlPos.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Geo
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -49,29 +50,27 @@ class Zend_Gdata_Geo_Extension_GmlPoint extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'gml';
|
||||
protected $_rootElement = 'Point';
|
||||
|
||||
|
||||
/**
|
||||
* The position represented by this GmlPoint
|
||||
*
|
||||
* @var Zend_Gdata_Geo_Extension_GmlPos
|
||||
*/
|
||||
*/
|
||||
protected $_pos = null;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
*
|
||||
* @param Zend_Gdata_Geo_Extension_GmlPos $pos (optional) Pos to which this
|
||||
* object should be initialized.
|
||||
*/
|
||||
public function __construct($pos = null)
|
||||
public function __construct($pos = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Geo::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Geo::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setPos($pos);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* child properties. This is used to build an entry back into a DOM
|
||||
@ -99,16 +98,16 @@ class Zend_Gdata_Geo_Extension_GmlPoint extends Zend_Gdata_Extension
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
|
||||
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gml') . ':' . 'pos';
|
||||
case $this->lookupNamespace('gml') . ':' . 'pos';
|
||||
$pos = new Zend_Gdata_Geo_Extension_GmlPos();
|
||||
$pos->transferFromDOM($child);
|
||||
$this->_pos = $pos;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's pos attribute.
|
||||
*
|
||||
@ -131,6 +130,6 @@ class Zend_Gdata_Geo_Extension_GmlPoint extends Zend_Gdata_Extension
|
||||
$this->_pos = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user