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();
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php