ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Column.php
Go to the documentation of this file.
1 <?php
39 {
45  private $_parent;
46 
52  private $_columnIndex;
53 
60  public function __construct(PHPExcel_Worksheet $parent = null, $columnIndex = 'A') {
61  // Set parent and column index
62  $this->_parent = $parent;
63  $this->_columnIndex = $columnIndex;
64  }
65 
69  public function __destruct() {
70  unset($this->_parent);
71  }
72 
78  public function getColumnIndex() {
79  return $this->_columnIndex;
80  }
81 
89  public function getCellIterator($startRow = 1, $endRow = null) {
90  return new PHPExcel_Worksheet_ColumnCellIterator($this->_parent, $this->_columnIndex, $startRow, $endRow);
91  }
92 }
getCellIterator($startRow=1, $endRow=null)
Get cell iterator.
Definition: Column.php:89
__construct(PHPExcel_Worksheet $parent=null, $columnIndex='A')
Create a new column.
Definition: Column.php:60
getColumnIndex()
Get column index.
Definition: Column.php:78
__destruct()
Destructor.
Definition: Column.php:69