示例#1
0
 static function includeFileFromDir($path, $fileExclude = array())
 {
     $file = ThemeFile::scanDir($path);
     if ($file === false) {
         return false;
     }
     foreach ($file as $value) {
         if (in_array($value, $fileExclude)) {
             continue;
         }
         self::includeFile($path . $value);
     }
     return true;
 }
示例#2
0
 function getIcon()
 {
     $file = ThemeFile::scanDir(THEME_PATH_MEDIA . 'image/public/icon_menu/');
     return $file;
 }