Back to index

php5  5.3.10
examples.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 class IncludeFiles extends ArrayIterator
00004 {
00005        function __construct($path, $classes)
00006        {
00007               parent::__construct();
00008               foreach($classes as $c)
00009               {
00010                      $this->append($path . '/' . strtolower($c) . '.inc');
00011               }
00012        }
00013 }
00014 
00015 $classes = array(
00016 );
00017 
00018 foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
00019 {
00020        require_once($file);
00021 }
00022 
00023 ?>