registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); parent::__construct($element); } public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) { $element = parent::getDOM($doc, $majorVersion, $minorVersion); if ($this->_cell != null) { $element->appendChild($this->_cell->getDOM($element->ownerDocument)); } return $element; } protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('gs') . ':' . 'cell'; $cell = new Zend_Gdata_Spreadsheets_Extension_Cell(); $cell->transferFromDOM($child); $this->_cell = $cell; break; default: parent::takeChildFromDOM($child); break; } } /** * Gets the Cell element of this Cell Entry. * @return Zend_Gdata_Spreadsheets_Extension_Cell */ public function getCell() { return $this->_cell; } /** * Sets the Cell element of this Cell Entry. * @param $cell Zend_Gdata_Spreadsheets_Extension_Cell $cell */ public function setCell($cell) { $this->_cell = $cell; return $this; } }