ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
RowIterator.php
Go to the documentation of this file.
1 <?php
39 {
45  private $_subject;
46 
52  private $_position = 1;
53 
59  public function __construct(PHPExcel_Worksheet $subject = null) {
60  // Set subject
61  $this->_subject = $subject;
62  }
63 
67  public function __destruct() {
68  unset($this->_subject);
69  }
70 
74  public function rewind() {
75  $this->_position = 1;
76  }
77 
83  public function current() {
84  return new PHPExcel_Worksheet_Row($this->_subject, $this->_position);
85  }
86 
92  public function key() {
93  return $this->_position;
94  }
95 
99  public function next() {
101  }
102 
108  public function valid() {
109  return $this->_position <= $this->_subject->getHighestRow();
110  }
111 }