Exemple #1
0
 public static function tables()
 {
     $tables = [];
     foreach (glob(BRAMBLE_DIR . '/.init/.tables/*.sql') as $path) {
         $table = Table::parse(file_get_contents($path));
         $tables[$table->name()] = $table;
     }
     return TemplateGenerator::sort($tables);
 }