PHP 클래스 Bolt\Storage\Database\Schema\Manager

Based on on parts of the monolithic Bolt\Database\IntegrityChecker class.
저자: Gawain Lynch ([email protected])
상속: implements Bolt\Storage\Database\Schema\SchemaManagerInterface
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Bolt\Config
$connection Doctrine\DBAL\Connection
$installedTables Doctrine\DBAL\Schema\Table[]
$schema Doctrine\DBAL\Schema\Schema
$schemaTables Doctrine\DBAL\Schema\Table[]

공개 메소드들

메소드 설명
__construct ( Silex\Application $app ) Constructor.
check ( ) : SchemaCheck Run a check against current and configured schemas.
getInstalledTables ( ) : Doctrine\DBAL\Schema\Table[] Get the installed table list from Doctrine.
getSchema ( ) : Doctrine\DBAL\Schema\Schema Get the built schema.
getSchemaTables ( ) : Doctrine\DBAL\Schema\Table[] Get a merged array of tables.
getTableName ( string $name ) : string | null Get the database name of a table from an alias.
hasUserTable ( ) : boolean Check if just the users table is present.
isCheckRequired ( )
isUpdateRequired ( )
registerExtensionTable ( callable $generator ) This method allows extensions to register their own tables.
update ( ) : SchemaCheck Run database table updates.

비공개 메소드들

메소드 설명
getSchemaComparator ( ) : Bolt\Storage\Database\Schema\Comparison\BaseComparator
getSchemaTimer ( ) : Timer

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Silex\Application $app )
$app Silex\Application

check() 공개 메소드

Run a check against current and configured schemas.
public check ( ) : SchemaCheck
리턴 SchemaCheck

getInstalledTables() 공개 메소드

Get the installed table list from Doctrine.
public getInstalledTables ( ) : Doctrine\DBAL\Schema\Table[]
리턴 Doctrine\DBAL\Schema\Table[]

getSchema() 공개 메소드

Get the built schema.
public getSchema ( ) : Doctrine\DBAL\Schema\Schema
리턴 Doctrine\DBAL\Schema\Schema

getSchemaTables() 공개 메소드

Get a merged array of tables.
public getSchemaTables ( ) : Doctrine\DBAL\Schema\Table[]
리턴 Doctrine\DBAL\Schema\Table[]

getTableName() 공개 메소드

Get the database name of a table from an alias.
public getTableName ( string $name ) : string | null
$name string
리턴 string | null

hasUserTable() 공개 메소드

Check if just the users table is present.
public hasUserTable ( ) : boolean
리턴 boolean

isCheckRequired() 공개 메소드

public isCheckRequired ( )

isUpdateRequired() 공개 메소드

public isUpdateRequired ( )

registerExtensionTable() 공개 메소드

This method allows extensions to register their own tables.
public registerExtensionTable ( callable $generator )
$generator callable A generator function that takes the Schema instance and returns a table or an array of tables.

update() 공개 메소드

Run database table updates.
public update ( ) : SchemaCheck
리턴 SchemaCheck

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected Config,Bolt $config
리턴 Bolt\Config

$connection 보호되어 있는 프로퍼티

protected Connection,Doctrine\DBAL $connection
리턴 Doctrine\DBAL\Connection

$installedTables 보호되어 있는 프로퍼티

protected Table[],Doctrine\DBAL\Schema $installedTables
리턴 Doctrine\DBAL\Schema\Table[]

$schema 보호되어 있는 프로퍼티

protected Schema,Doctrine\DBAL\Schema $schema
리턴 Doctrine\DBAL\Schema\Schema

$schemaTables 보호되어 있는 프로퍼티

protected Table[],Doctrine\DBAL\Schema $schemaTables
리턴 Doctrine\DBAL\Schema\Table[]