MediaWiki
REL1_30
IteratorDecorator.php
Go to the documentation of this file.
1
<?php
24
abstract
class
IteratorDecorator
implements
Iterator {
25
protected
$iterator
;
26
27
public
function
__construct
( Iterator
$iterator
) {
28
$this->iterator =
$iterator
;
29
}
30
31
public
function
current
() {
32
return
$this->iterator->current();
33
}
34
35
public
function
key
() {
36
return
$this->iterator->key();
37
}
38
39
public
function
next
() {
40
$this->iterator->next();
41
}
42
43
public
function
rewind
() {
44
$this->iterator->rewind();
45
}
46
47
public
function
valid
() {
48
return
$this->iterator->valid();
49
}
50
}
IteratorDecorator
Definition
IteratorDecorator.php:24
IteratorDecorator\$iterator
$iterator
Definition
IteratorDecorator.php:25
IteratorDecorator\valid
valid()
Definition
IteratorDecorator.php:47
IteratorDecorator\rewind
rewind()
Definition
IteratorDecorator.php:43
IteratorDecorator\current
current()
Definition
IteratorDecorator.php:31
IteratorDecorator\next
next()
Definition
IteratorDecorator.php:39
IteratorDecorator\__construct
__construct(Iterator $iterator)
Definition
IteratorDecorator.php:27
IteratorDecorator\key
key()
Definition
IteratorDecorator.php:35
includes
libs
iterators
IteratorDecorator.php
Generated on Mon Nov 25 2024 15:42:28 for MediaWiki by
1.10.0