[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Zend Framework 5 * 6 * LICENSE 7 * 8 * This source file is subject to the new BSD license that is bundled 9 * with this package in the file LICENSE.txt. 10 * It is also available through the world-wide-web at this URL: 11 * http://framework.zend.com/license/new-bsd 12 * If you did not receive a copy of the license and are unable to 13 * obtain it through the world-wide-web, please send an email 14 * to [email protected] so we can send you a copy immediately. 15 * 16 * @category Zend 17 * @package Zend_Gdata 18 * @subpackage Geo 19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id$ 22 */ 23 24 /** 25 * @see Zend_Gdata_Entry 26 */ 27 require_once 'Zend/Gdata/Entry.php'; 28 29 /** 30 * @see Zend_Gdata_Geo 31 */ 32 require_once 'Zend/Gdata/Geo.php'; 33 34 /** 35 * @see Zend_Gdata_Geo_Extension_GeoRssWhere 36 */ 37 require_once 'Zend/Gdata/Geo/Extension/GeoRssWhere.php'; 38 39 /** 40 * An Atom entry containing Geograpic data. 41 * 42 * @category Zend 43 * @package Zend_Gdata 44 * @subpackage Geo 45 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 46 * @license http://framework.zend.com/license/new-bsd New BSD License 47 */ 48 class Zend_Gdata_Geo_Entry extends Zend_Gdata_Entry 49 { 50 51 protected $_entryClassName = 'Zend_Gdata_Geo_Entry'; 52 53 protected $_where = null; 54 55 public function __construct($element = null) 56 { 57 $this->registerAllNamespaces(Zend_Gdata_Geo::$namespaces); 58 parent::__construct($element); 59 } 60 61 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) 62 { 63 $element = parent::getDOM($doc, $majorVersion, $minorVersion); 64 if ($this->_where != null) { 65 $element->appendChild($this->_where->getDOM($element->ownerDocument)); 66 } 67 return $element; 68 } 69 70 protected function takeChildFromDOM($child) 71 { 72 $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; 73 switch ($absoluteNodeName) { 74 case $this->lookupNamespace('georss') . ':' . 'where': 75 $where = new Zend_Gdata_Geo_Extension_GeoRssWhere(); 76 $where->transferFromDOM($child); 77 $this->_where = $where; 78 break; 79 default: 80 parent::takeChildFromDOM($child); 81 break; 82 } 83 } 84 85 public function getWhere() 86 { 87 return $this->_where; 88 } 89 90 public function setWhere($value) 91 { 92 $this->_where = $value; 93 return $this; 94 } 95 96 97 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |