cvs: php-src(PHP_5_1) /ext/spl/examples cachingrecursiveiterator.inc

From: Date: Mon, 19 Sep 2005 18:28:52 +0000
Subject: cvs: php-src(PHP_5_1) /ext/spl/examples cachingrecursiveiterator.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34015@lists.php.net to get a copy of this message
helly Mon Sep 19 14:28:52 2005 EDT Added files: (Branch: PHP_5_1) /php-src/ext/spl/examples cachingrecursiveiterator.inc Log: - MFH Add deprecated/compatibility class for BC http://cvs.php.net/co.php/php-src/ext/spl/examples/cachingrecursiveiterator.inc?r=1.1&p=1 Index: php-src/ext/spl/examples/cachingrecursiveiterator.inc +++ php-src/ext/spl/examples/cachingrecursiveiterator.inc <?php class CachingRecursiveIterator extends CachingIterator implements RecursiveIterator { protected $hasChildren; protected $getChildren; function __construct(RecursiveIterator $it) { parent::__construct($it); } function next() { if ($this->hasChildren = $this->it->hasChildren()) { $this->getChildren = new CachingRecursiveIterator($this->it->getChildren()); } else { $this->getChildren = NULL; } parent::next(); } function hasChildren() { return $this->hasChildren; } function getChildren() { return $this->getChildren; } } ?>

« previous php.cvs (#34015) next »