SPL-StandardPHPLibrary
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
internal
emptyiterator.inc
Go to the documentation of this file.
1
<?php
2
18
class
EmptyIterator
implements
Iterator
19
{
23
function
rewind
()
24
{
25
// nothing to do
26
}
27
30
function
valid
()
31
{
32
return
false
;
33
}
34
39
function
current
()
40
{
41
throw
new
Exception
(
'Accessing the value of an EmptyIterator'
);
42
}
43
48
function
key
()
49
{
50
throw
new
Exception
(
'Accessing the key of an EmptyIterator'
);
51
}
52
56
function
next
()
57
{
58
// nothing to do
59
}
60
}
61
62
?>
EmptyIterator\rewind
rewind()
No operation.
Definition:
emptyiterator.inc:23
EmptyIterator\key
key()
This function must not be called.
Definition:
emptyiterator.inc:48
EmptyIterator
An empty Iterator.
Definition:
emptyiterator.inc:18
EmptyIterator\current
current()
This function must not be called.
Definition:
emptyiterator.inc:39
Iterator
Basic iterator.
Definition:
spl.php:549
EmptyIterator\next
next()
No operation.
Definition:
emptyiterator.inc:56
Exception
Basic Exception class.
Definition:
spl.php:258
EmptyIterator\valid
valid()
Definition:
emptyiterator.inc:30
Generated on Wed Dec 4 2013 21:25:51 for SPL-StandardPHPLibrary by
1.8.5