diff options
| author | Marcus Boerger <helly@php.net> | 2004-05-02 22:07:32 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-05-02 22:07:32 +0000 |
| commit | e72a305091f309e5b125f9537f45414a09924ae5 (patch) | |
| tree | fc2a7e06ecb8be15b4bee97adcaa19697fec0383 /ext/spl/examples/cachingrecursiveiterator.inc | |
| parent | 3317070941db45dc32e7e82bf55a54d9a997b2aa (diff) | |
| download | php-git-e72a305091f309e5b125f9537f45414a09924ae5.tar.gz | |
Update examples
Diffstat (limited to 'ext/spl/examples/cachingrecursiveiterator.inc')
| -rw-r--r-- | ext/spl/examples/cachingrecursiveiterator.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/spl/examples/cachingrecursiveiterator.inc b/ext/spl/examples/cachingrecursiveiterator.inc index dfeeea54e7..fc7d9a7220 100644 --- a/ext/spl/examples/cachingrecursiveiterator.inc +++ b/ext/spl/examples/cachingrecursiveiterator.inc @@ -4,13 +4,19 @@ class CachingRecursiveIterator extends CachingIterator implements RecursiveItera { protected $hasChildren; protected $getChildren; - protected $catch_get_child; function __construct(RecursiveIterator $it, $flags = CIT_CALL_TOSTRING) { parent::__construct($it, $flags); } + function rewind(); + { + $this->hasChildren = false; + $this->getChildren = NULL; + parent::rewind(); + } + function next() { if ($this->hasChildren = $this->it->hasChildren()) { |
