Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Spreadsheets/CellEntry.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Entry.php';
00028 
00032 require_once 'Zend/Gdata/Spreadsheets/Extension/Cell.php';
00033 
00043 class Zend_Gdata_Spreadsheets_CellEntry extends Zend_Gdata_Entry
00044 {
00045 
00046     protected $_entryClassName = 'Zend_Gdata_Spreadsheets_CellEntry';
00047     protected $_cell;
00048 
00054     public function __construct($element = null)
00055     {
00056         $this->registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces);
00057         parent::__construct($element);
00058     }
00059 
00060     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00061     {
00062         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00063         if ($this->_cell != null) {
00064             $element->appendChild($this->_cell->getDOM($element->ownerDocument));
00065         }
00066         return $element;
00067     }
00068 
00069     protected function takeChildFromDOM($child)
00070     {
00071         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00072         switch ($absoluteNodeName) {
00073         case $this->lookupNamespace('gs') . ':' . 'cell';
00074             $cell = new Zend_Gdata_Spreadsheets_Extension_Cell();
00075             $cell->transferFromDOM($child);
00076             $this->_cell = $cell;
00077             break;
00078         default:
00079             parent::takeChildFromDOM($child);
00080             break;
00081         }
00082     }
00083 
00088     public function getCell()
00089     {
00090         return $this->_cell;
00091     }
00092 
00097     public function setCell($cell)
00098     {
00099         $this->_cell = $cell;
00100         return $this;
00101     }
00102 
00103 }
 All Data Structures Namespaces Files Functions Variables Enumerations