ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
WorksheetIterator.php
Go to the documentation of this file.
1 <?php
39 {
45  private $_subject;
46 
52  private $_position = 0;
53 
59  public function __construct(PHPExcel $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 = 0;
76  }
77 
83  public function current() {
84  return $this->_subject->getSheet($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->getSheetCount();
110  }
111 }