cvs: spl /examples parentiterator.inc

From: Date: Sun, 30 Nov 2003 16:20:03 +0000
Subject: cvs: spl /examples parentiterator.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24778@lists.php.net to get a copy of this message
helly Sun Nov 30 11:20:03 2003 EDT Modified files: /spl/examples parentiterator.inc Log: Require inner iterator to be RecursiveIterator Index: spl/examples/parentiterator.inc diff -u spl/examples/parentiterator.inc:1.1 spl/examples/parentiterator.inc:1.2 --- spl/examples/parentiterator.inc:1.1 Sat Nov 22 15:52:06 2003 +++ spl/examples/parentiterator.inc Sun Nov 30 11:20:03 2003 @@ -2,6 +2,10 @@ class ParentIterator extends FilterIterator implements RecursiveIterator { + function __construct(RecursiveIterator $it) + { + parent::__construct($it); + } function accept() { return $this->it->hasChildren();

« previous php.cvs (#24778) next »