5
* Copyright (c) 2006 - 2009 PHPExcel
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
* @package PHPExcel_Worksheet
23
* @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
24
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25
* @version 1.7.0, 2009-08-10
29
/** PHPExcel root directory */
30
if (!defined('PHPEXCEL_ROOT')) {
34
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
38
require_once PHPEXCEL_ROOT . 'PHPExcel.php';
40
/** PHPExcel_Worksheet */
41
require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php';
43
/** PHPExcel_Worksheet_CellIterator */
44
require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet/CellIterator.php';
48
* PHPExcel_Worksheet_Row
50
* Represents a row in PHPExcel_Worksheet, used by PHPExcel_Worksheet_RowIterator
53
* @package PHPExcel_Worksheet
54
* @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
56
class PHPExcel_Worksheet_Row
61
* @var PHPExcel_Worksheet
70
private $_rowIndex = 0;
75
* @param PHPExcel_Worksheet $parent
76
* @param int $rowIndex
78
public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1) {
79
// Set parent and row index
80
$this->_parent = $parent;
81
$this->_rowIndex = $rowIndex;
87
public function __destruct() {
88
unset($this->_parent);
96
public function getRowIndex() {
97
return $this->_rowIndex;
103
* @return PHPExcel_Worksheet_CellIterator
105
public function getCellIterator() {
106
return new PHPExcel_Worksheet_CellIterator($this->_parent, $this->_rowIndex);