示例#1
0
 protected static function detectMode()
 {
     self::$_jsMode = false;
     self::$_cssMode = false;
     foreach (self::$_files as $file) {
         switch ($file['ext']) {
             case 'js':
                 self::$_jsMode = true;
                 break;
             case 'css':
                 self::$_cssMode = true;
                 break;
         }
         if (self::$_jsMode !== false && self::$_cssMode !== false) {
             break;
         }
     }
 }