ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Row.php
Go to the documentation of this file.
1 <?php
30 if (!defined('PHPEXCEL_ROOT')) {
34  define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 }
36 
38 require_once PHPEXCEL_ROOT . 'PHPExcel.php';
39 
41 require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php';
42 
44 require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet/CellIterator.php';
45 
46 
57 {
63  private $_parent;
64 
70  private $_rowIndex = 0;
71 
78  public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1) {
79  // Set parent and row index
80  $this->_parent = $parent;
81  $this->_rowIndex = $rowIndex;
82  }
83 
87  public function __destruct() {
88  unset($this->_parent);
89  }
90 
96  public function getRowIndex() {
97  return $this->_rowIndex;
98  }
99 
105  public function getCellIterator() {
106  return new PHPExcel_Worksheet_CellIterator($this->_parent, $this->_rowIndex);
107  }
108 }