30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
38 require_once PHPEXCEL_ROOT .
'PHPExcel.php';
41 require_once PHPEXCEL_ROOT .
'PHPExcel/Worksheet.php';
44 require_once PHPEXCEL_ROOT .
'PHPExcel/Cell.php';
94 $this->_subject = $subject;
95 $this->_rowIndex = $rowIndex;
102 unset($this->_subject);
109 $this->_position = 0;
118 $cellExists = $this->_subject->cellExistsByColumnAndRow($this->_position, $this->_rowIndex);
119 if ( ($this->_onlyExistingCells && $cellExists) || (!$this->_onlyExistingCells) ) {
120 return $this->_subject->getCellByColumnAndRow($this->_position, $this->_rowIndex);
121 }
else if ($this->_onlyExistingCells && !$cellExists) {
123 while ($this->
valid()) {
125 if ($this->_subject->cellExistsByColumnAndRow($this->_position, $this->_rowIndex)) {
126 return $this->_subject->getCellByColumnAndRow($this->_position, $this->_rowIndex);
174 $this->_onlyExistingCells = $value;