PHP Class Nette\Database\Structure

Author: Jan Skrasek
Inheritance: extends Nette\Object, implements Nette\Database\IStructure
Show file Open project: nette/database

Protected Properties

Property Type Description
$cache Nette\Caching\Cache
$connection Connection
$isRebuilt boolean
$structure array

Public Methods

Method Description
__construct ( Connection $connection, Nette\Caching\IStorage $cacheStorage )
getBelongsToReference ( $table, $column = NULL )
getColumns ( $table )
getHasManyReference ( $table, $targetTable = NULL )
getPrimaryKey ( $table )
getPrimaryKeySequence ( $table )
getTables ( )
isRebuilt ( )
loadStructure ( )
rebuild ( )

Protected Methods

Method Description
analyzeForeignKeys ( &$structure, $table )
analyzePrimaryKey ( array $columns )
needStructure ( )
resolveFQTableName ( $table )

Method Details

__construct() public method

public __construct ( Connection $connection, Nette\Caching\IStorage $cacheStorage )
$connection Connection
$cacheStorage Nette\Caching\IStorage

analyzeForeignKeys() protected method

protected analyzeForeignKeys ( &$structure, $table )

analyzePrimaryKey() protected method

protected analyzePrimaryKey ( array $columns )
$columns array

getBelongsToReference() public method

public getBelongsToReference ( $table, $column = NULL )

getColumns() public method

public getColumns ( $table )

getHasManyReference() public method

public getHasManyReference ( $table, $targetTable = NULL )

getPrimaryKey() public method

public getPrimaryKey ( $table )

getPrimaryKeySequence() public method

public getPrimaryKeySequence ( $table )

getTables() public method

public getTables ( )

isRebuilt() public method

public isRebuilt ( )

loadStructure() public method

public loadStructure ( )

needStructure() protected method

protected needStructure ( )

rebuild() public method

public rebuild ( )

resolveFQTableName() protected method

protected resolveFQTableName ( $table )

Property Details

$cache protected property

protected Cache,Nette\Caching $cache
return Nette\Caching\Cache

$connection protected property

protected Connection,Nette\Database $connection
return Connection

$isRebuilt protected property

protected bool $isRebuilt
return boolean

$structure protected property

protected array $structure
return array