ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Row.php
Go to the documentation of this file.
1<?php
39{
45 private $_parent;
46
52 private $_rowIndex = 0;
53
60 public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1) {
61 // Set parent and row index
62 $this->_parent = $parent;
63 $this->_rowIndex = $rowIndex;
64 }
65
69 public function __destruct() {
70 unset($this->_parent);
71 }
72
78 public function getRowIndex() {
79 return $this->_rowIndex;
80 }
81
89 public function getCellIterator($startColumn = 'A', $endColumn = null) {
90 return new PHPExcel_Worksheet_RowCellIterator($this->_parent, $this->_rowIndex, $startColumn, $endColumn);
91 }
92}
An exception for terminatinating execution or to throw for unit testing.
__construct(PHPExcel_Worksheet $parent=null, $rowIndex=1)
Create a new row.
Definition: Row.php:60
__destruct()
Destructor.
Definition: Row.php:69
getRowIndex()
Get row index.
Definition: Row.php:78
getCellIterator($startColumn='A', $endColumn=null)
Get cell iterator.
Definition: Row.php:89