public static function loadDir($path) { $files = FileUtils::getFilesForDirectory($path); foreach ($files as $file) { self::loadFile($path . DIRECTORY_SEPARATOR . $file); } }
protected function loadTabFiles() { $files = FileUtils::getFilesForDirectory($this->_originalDirectory); foreach ($files as $file) { $info = pathinfo($file); $ext = isset($info['extension']) ? $info['extension'] : "dir"; if (isset($this->_loaders[$ext])) { $this->_loaders[$ext]->load($file); } } }