예제 #1
0
 function get_available_rotators()
 {
     $result = array();
     $d = new Dir(self::ROTATOR_GALLERIES_ROOT_PATH);
     $dirs = $d->listFolders();
     foreach ($dirs as $d) {
         $result[] = $d->getName();
     }
     return $result;
 }
예제 #2
0
 public static function load_from_dir($dir)
 {
     if ($dir instanceof Dir) {
         $my_dir = $dir;
     } else {
         $my_dir = new Dir($dir);
     }
     self::$css_dirs[] = $my_dir;
     //CSS_DIRS
     if ($my_dir->exists() && $my_dir->isDir()) {
         $file_list = $my_dir->listFiles();
         foreach ($file_list as $f) {
             if ($f->isFile() && $f->getExtension() == "css") {
                 self::require_css_file($f);
             }
         }
     } else {
         Log::warn("load_from_dir", "Impossibile caricare i css dalla directory : " . $my_dir->getName());
     }
 }