| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- class PHPExcel_Worksheet_Row
- {
- /**
- * PHPExcel_Worksheet
- *
- * @var PHPExcel_Worksheet
- */
- private $parent;
- /**
- * Row index
- *
- * @var int
- */
- private $rowIndex = 0;
- /**
- * Create a new row
- *
- * @param PHPExcel_Worksheet $parent
- * @param int $rowIndex
- */
- public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1)
- {
- // Set parent and row index
- $this->parent = $parent;
- $this->rowIndex = $rowIndex;
- }
- /**
- * Destructor
- */
- public function __destruct()
- {
- unset($this->parent);
- }
- /**
- * Get row index
- *
- * @return int
- */
- public function getRowIndex()
- {
- return $this->rowIndex;
- }
- /**
- * Get cell iterator
- *
- * @param string $startColumn The column address at which to start iterating
- * @param string $endColumn Optionally, the column address at which to stop iterating
- * @return PHPExcel_Worksheet_CellIterator
- */
- public function getCellIterator($startColumn = 'A', $endColumn = null)
- {
- return new PHPExcel_Worksheet_RowCellIterator($this->parent, $this->rowIndex, $startColumn, $endColumn);
- }
- }
|