public function getTableDef($tablename) {
        $ltablename = strtolower($tablename);

        // Check to see if the table isn't in the cache first.
        if ($this->allTablesFetched & Db::FETCH_TABLENAMES &&
            !isset($this->tables[$ltablename])) {
            return null;
        }

        if (
            isset($this->tables[$ltablename]) &&
            is_array($this->tables[$ltablename]) &&
            isset($this->tables[$ltablename]['columns'], $this->tables[$ltablename]['indexes'])
        ) {
            return $this->tables[$ltablename];
        }
        return [];
    }
public function getTableDef($tablename) {
        $ltablename = strtolower($tablename);

        // Check to see if the table isn't in the cache first.
        if ($this->allTablesFetched & Db::FETCH_TABLENAMES &&
            !isset($this->tables[$ltablename])) {
            return null;
        }

        if (
            isset($this->tables[$ltablename]) &&
            is_array($this->tables[$ltablename]) &&
            isset($this->tables[$ltablename]['columns'], $this->tables[$ltablename]['indexes'])
        ) {
            return $this->tables[$ltablename];
        }
        return [];
    }
public function getTableDef ( $ tablename ) { $ ltablename = strtolower ( $ tablename ) ; // Check to see if the table isn't in the cache first. if ( $ this -> allTablesFetched & Db :: FETCH_TABLENAMES && ! isset ( $ this -> tables [ $ ltablename ] ) ) { return null ; } if ( isset ( $ this -> tables [ $ ltablename ] ) && is_array ( $ this -> tables [ $ ltablename ] ) && isset ( $ this -> tables [ $ ltablename ] [ 'columns' ] , $ this -> tables [ $ ltablename ] [ 'indexes' ] ) ) { return $ this -> tables [ $ ltablename ] ; } return [ ] ; }
Get a table definition.

@param string $tablename The name of the table.
@return array|null Returns the table definition or null if the table does not exist.
Get a table definition .