classes/DatabaseTableModel.php
public function load($name)
    {
        if (!self::tableExists($name)) {
            throw new SystemException(sprintf('The table with name %s doesn\'t exist', $name));
        }

        $schema = self::getSchemaManager()->createSchema();

        $this->name = $name;
        $this->tableInfo = $schema->getTable($this->name);
        $this->loadColumnsFromTableInfo();
        $this->exists = true;
    }
public function load($name)
    {
        if (!self::tableExists($name)) {
            throw new SystemException(sprintf('The table with name %s doesn\'t exist', $name));
        }

        $schema = self::getSchemaManager()->createSchema();

        $this->name = $name;
        $this->tableInfo = $schema->getTable($this->name);
        $this->loadColumnsFromTableInfo();
        $this->exists = true;
    }
public function load ( $ name ) { if ( ! self :: tableExists ( $ name ) ) { throw new SystemException ( sprintf ( 'The table with name %s doesn\'t exist' , $ name ) ) ; } $ schema = self :: getSchemaManager ( ) -> createSchema ( ) ; $ this -> name = $ name ; $ this -> tableInfo = $ schema -> getTable ( $ this -> name ) ; $ this -> loadColumnsFromTableInfo ( ) ; $ this -> exists = true ; }
Loads the table from the database.
@param string $name Specifies the table name.
Loads the table from the database .