Пример #1
0
 public static function loadDir($path)
 {
     $files = FileUtils::getFilesForDirectory($path);
     foreach ($files as $file) {
         self::loadFile($path . DIRECTORY_SEPARATOR . $file);
     }
 }
Пример #2
0
 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);
         }
     }
 }