Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Spreadsheets/CellFeed.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Feed.php';
00028 
00032 require_once 'Zend/Gdata/Spreadsheets/Extension/RowCount.php';
00033 
00037 require_once 'Zend/Gdata/Spreadsheets/Extension/ColCount.php';
00038 
00047 class Zend_Gdata_Spreadsheets_CellFeed extends Zend_Gdata_Feed
00048 {
00049 
00055     protected $_entryClassName = 'Zend_Gdata_Spreadsheets_CellEntry';
00056 
00062     protected $_feedClassName = 'Zend_Gdata_Spreadsheets_CellFeed';
00063 
00069     protected $_rowCount = null;
00070 
00076     protected $_colCount = null;
00077 
00082     public function __construct($element = null)
00083     {
00084         $this->registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces);
00085         parent::__construct($element);
00086     }
00087 
00088     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00089     {
00090         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00091         if ($this->rowCount != null) {
00092             $element->appendChild($this->_rowCount->getDOM($element->ownerDocument));
00093         }
00094         if ($this->colCount != null) {
00095             $element->appendChild($this->_colCount->getDOM($element->ownerDocument));
00096         }
00097         return $element;
00098     }
00099 
00100     protected function takeChildFromDOM($child)
00101     {
00102         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00103         switch ($absoluteNodeName) {
00104             case $this->lookupNamespace('gs') . ':' . 'rowCount';
00105                 $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount();
00106                 $rowCount->transferFromDOM($child);
00107                 $this->_rowCount = $rowCount;
00108                 break;
00109             case $this->lookupNamespace('gs') . ':' . 'colCount';
00110                 $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount();
00111                 $colCount->transferFromDOM($child);
00112                 $this->_colCount = $colCount;
00113                 break;
00114             default:
00115                 parent::takeChildFromDOM($child);
00116                 break;
00117         }
00118     }
00119 
00124     public function getRowCount()
00125     {
00126         return $this->_rowCount;
00127     }
00128 
00133     public function getColumnCount()
00134     {
00135         return $this->_colCount;
00136     }
00137 
00142     public function setRowCount($rowCount)
00143     {
00144         $this->_rowCount = $rowCount;
00145         return $this;
00146     }
00147 
00152     public function setColumnCount($colCount)
00153     {
00154         $this->_colCount = $colCount;
00155         return $this;
00156     }
00157 
00158 }
 All Data Structures Namespaces Files Functions Variables Enumerations