ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 {
61 // Set subject
62 $this->_subject = $subject;
63 }
64
68 public function __destruct()
69 {
70 unset($this->_subject);
71 }
72
76 public function rewind()
77 {
78 $this->_position = 0;
79 }
80
86 public function current()
87 {
88 return $this->_subject->getSheet($this->_position);
89 }
90
96 public function key()
97 {
98 return $this->_position;
99 }
100
104 public function next()
105 {
107 }
108
114 public function valid()
115 {
116 return $this->_position < $this->_subject->getSheetCount();
117 }
118}
An exception for terminatinating execution or to throw for unit testing.
current()
Current PHPExcel_Worksheet.
__construct(PHPExcel $subject=null)
Create a new worksheet iterator.
valid()
More PHPExcel_Worksheet instances available?