<?php
	class Tools {
		public static function ImportDirectory($path) {
			$iter = new DirectoryIterator($path);

			foreach ($iter as $file) {
				if (!$file->isDot() && $file->isFile() && !preg_match('/^\./',$file->getFilename())) {
					$filepath = $path . "/" . $file->getFilename();
					require_once($filepath);
				}
			}
		}
	};
?>
