summaryrefslogtreecommitdiff
path: root/ext/spl/examples/tests/examples.inc
blob: feeba7db243de475c508c13f9be6c2fa8f99c51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class IncludeFiles extends ArrayIterator
{
	function __construct($path, $classes)
	{
		parent::__construct();
		foreach($classes as $c)
		{
			$this->append($path . '/' . strtolower($c) . '.inc');
		}
	}
}

$classes = array(
);

foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
{
	require_once($file);
}

?>