Files
php-src/ext/spl/tests
Arnaud Le Blanc b83e243c23 Added CallbackFilterIterator and RecursiveCallbackFilterIterator classes
[DOC] This is a concrete FilterIterator which takes a callback as
constructor parameter, and uses this callback for filtering. This allows
to use FilterIterator without extending it.

CallbackFilterIterator Example:

$it = new ArrayIterator(range(1,100));
$it = new CallbackFilterIterator($it, function($value) {
	return $value % 2;
});
foreach($it as $value) // ...

RecursiveCallbackFilterIterator Example:

$it = new RecursiveDirectoryIterator("/");
$it = new RecursiveCallbackFilterIterator($it, function($file, $k, $it) {
	return $it->hasChildren() || $file->getSize() > 1024;
});
foreach(new RecursiveIteratorIterator($it) as $file) // ...

The callback takes the current value, the current key and the inner
iterator as parameters.
2011-03-27 20:13:27 +00:00
..
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-08 12:02:17 +00:00
2010-04-03 15:42:42 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2009-04-06 09:31:52 +00:00
2008-05-06 23:08:06 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2007-04-06 17:54:22 +00:00
2008-05-24 14:10:44 +00:00
2007-12-12 00:34:06 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2007-11-02 19:41:12 +00:00
2007-10-18 04:41:39 +00:00
2009-07-28 22:25:31 +00:00
2008-06-12 20:52:34 +00:00
2008-09-22 13:09:50 +00:00
2010-11-08 20:26:14 +00:00
2010-08-18 01:59:37 +00:00
2009-07-04 20:31:27 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2010-04-03 15:42:42 +00:00
MFH
2008-07-02 12:25:15 +00:00
2008-07-13 19:47:52 +00:00
2008-08-03 19:07:31 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-11-22 14:19:47 +00:00
2008-05-24 14:10:44 +00:00
2008-05-25 12:13:41 +00:00
2008-08-03 19:07:31 +00:00
2010-04-03 15:42:42 +00:00
2008-08-24 16:46:30 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-11-22 14:19:47 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2010-06-03 23:22:39 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-05-24 14:10:44 +00:00
2008-07-13 21:44:38 +00:00
2009-04-26 23:58:44 +00:00
2010-04-03 15:42:42 +00:00
2005-03-02 01:14:41 +00:00
2005-03-02 01:14:41 +00:00
2005-03-02 01:14:41 +00:00
2005-03-02 01:14:41 +00:00