Annotation of embedaddon/php/ext/spl/examples/tests/examples.inc, revision 1.1.1.1
1.1 misho 1: <?php
2:
3: class IncludeFiles extends ArrayIterator
4: {
5: function __construct($path, $classes)
6: {
7: parent::__construct();
8: foreach($classes as $c)
9: {
10: $this->append($path . '/' . strtolower($c) . '.inc');
11: }
12: }
13: }
14:
15: $classes = array(
16: );
17:
18: foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
19: {
20: require_once($file);
21: }
22:
23: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>