Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Calendar/ListFeed.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Feed.php';
00028 
00032 require_once 'Zend/Gdata/Calendar/Extension/Timezone.php';
00033 
00043 class Zend_Gdata_Calendar_ListFeed extends Zend_Gdata_Feed
00044 {
00045     protected $_timezone = null;
00046 
00052     protected $_entryClassName = 'Zend_Gdata_Calendar_ListEntry';
00053 
00059     protected $_feedClassName = 'Zend_Gdata_Calendar_ListFeed';
00060 
00061     public function __construct($element = null)
00062     {
00063         $this->registerAllNamespaces(Zend_Gdata_Calendar::$namespaces);
00064         parent::__construct($element);
00065     }
00066 
00067     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00068     {
00069         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00070         if ($this->_timezone != null) {
00071             $element->appendChild($this->_timezone->getDOM($element->ownerDocument));
00072         }
00073         return $element;
00074     }
00075 
00076     protected function takeChildFromDOM($child)
00077     {
00078         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00079         switch ($absoluteNodeName) {
00080         case $this->lookupNamespace('gCal') . ':' . 'timezone';
00081             $timezone = new Zend_Gdata_Calendar_Extension_Timezone();
00082             $timezone->transferFromDOM($child);
00083             $this->_timezone = $timezone;
00084             break;
00085         default:
00086             parent::takeChildFromDOM($child);
00087             break;
00088         }
00089     }
00090 
00091     public function getTimezone()
00092     {
00093         return $this->_timezone;
00094     }
00095 
00100     public function setTimezone($value)
00101     {
00102         $this->_timezone = $value;
00103         return $this;
00104     }
00105 
00106 }
 All Data Structures Namespaces Files Functions Variables Enumerations