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