示例#1
0
 /** 
  *	Listing all schemas
  */
 public static function ListAll()
 {
     $data = array();
     //
     $folders = glob(Application::$root . "app/lang/*");
     //
     foreach ($folders as $key => $value) {
         $folder = \Strings::splite($value, "app/lang/");
         $folder = $folder[1];
         //
         $data[] = ">" . $folder;
         //
         foreach (glob(Application::$root . "app/lang/" . $folder . "/*.php") as $key2 => $value2) {
             $file = \Strings::splite($value2, "app/lang/{$folder}/");
             $file = $file[1];
             //
             $data[] = "   " . $file;
         }
     }
     //
     return $data;
 }