summaryrefslogtreecommitdiff
path: root/ext/spl/examples/cachingrecursiveiterator.inc
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-05-02 22:07:32 +0000
committerMarcus Boerger <helly@php.net>2004-05-02 22:07:32 +0000
commite72a305091f309e5b125f9537f45414a09924ae5 (patch)
treefc2a7e06ecb8be15b4bee97adcaa19697fec0383 /ext/spl/examples/cachingrecursiveiterator.inc
parent3317070941db45dc32e7e82bf55a54d9a997b2aa (diff)
downloadphp-git-e72a305091f309e5b125f9537f45414a09924ae5.tar.gz
Update examples
Diffstat (limited to 'ext/spl/examples/cachingrecursiveiterator.inc')
-rw-r--r--ext/spl/examples/cachingrecursiveiterator.inc8
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()) {