コード例 #1
0
ファイル: TableSchema.php プロジェクト: sanzhumu/xaircraft1.1
 public function __construct($table)
 {
     if (!isset($table)) {
         throw new DataTableException($table, "Table name invalid - [{$table}]");
     }
     $this->tableSymbol = TableSymbol::create($table);
     $this->table = $this->tableSymbol->getName();
     $schema = App::path('schema');
     if (!isset($schema)) {
         throw new DatabaseException("Can't find schema cache directory.");
     }
     $this->source = $schema . '/' . DB::getDatabaseName() . '/' . $this->table . '.dat';
     $this->initialize();
 }