src/Schema/Schema.php
public function getTable($table_name)
    {
        if (!$this->tables->has('tables', $table_name))
        {
            if ($this->db !== null)
            {
                $table = $this->db->loadTable($table_name);
                $this->tables->set('tables', $table_name, $table);
            }
            else
                throw new DBException("Table $table not ofund");
        }

        return $this->tables->get('tables', $table_name);
    }
public function getTable($table_name)
    {
        if (!$this->tables->has('tables', $table_name))
        {
            if ($this->db !== null)
            {
                $table = $this->db->loadTable($table_name);
                $this->tables->set('tables', $table_name, $table);
            }
            else
                throw new DBException("Table $table not ofund");
        }

        return $this->tables->get('tables', $table_name);
    }
public function getTable ( $ table_name ) { if ( ! $ this -> tables -> has ( 'tables' , $ table_name ) ) { if ( $ this -> db !== null ) { $ table = $ this -> db -> loadTable ( $ table_name ) ; $ this -> tables -> set ( 'tables' , $ table_name , $ table ) ; } else throw new DBException ( "Table $table not ofund" ) ; } return $ this -> tables -> get ( 'tables' , $ table_name ) ; }
Get a table definition from the schema
Get a table definition from the schema