PHP 클래스 Pagekit\Database\Utility

파일 보기 프로젝트 열기: pagekit/pagekit

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Pagekit\Database\Connection
$manager Doctrine\DBAL\Schema\AbstractSchemaManager
$schema Doctrine\DBAL\Schema\Schema

공개 메소드들

메소드 설명
__call ( string $method, array $args ) : mixed Proxy method call to database schema manager.
__construct ( Pagekit\Database\Connection $connection ) Constructor.
createConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table ) {@see AbstractSchemaManager::createConstraint}
createForeignKey ( Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, $table ) {@see AbstractSchemaManager::createForeignKey}
createIndex ( Doctrine\DBAL\Schema\Index $index, $table ) {@see AbstractSchemaManager::createIndex}
createTable ( string $table, Closure $callback ) Creates a new database table.
dropAndCreateConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table ) {@see AbstractSchemaManager::dropAndCreateConstraint}
dropAndCreateForeignKey ( Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, $table ) {@see AbstractSchemaManager::dropAndCreateForeignKey}
dropAndCreateIndex ( Doctrine\DBAL\Schema\Index $index, $table ) {@see AbstractSchemaManager::dropAndCreateIndex}
dropAndCreateTable ( $table ) {@see AbstractSchemaManager::dropAndCreateTable}
dropConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table ) {@see AbstractSchemaManager::dropConstraint}
dropForeignKey ( $foreignKey, $table ) {@see AbstractSchemaManager::dropForeignKey}
dropIndex ( $index, $table ) {@see AbstractSchemaManager::dropIndex}
dropTable ( $table )
getSchemaManager ( ) : Doctrine\DBAL\Schema\AbstractSchemaManager Return the DBAL schema manager.
getTable ( string $table ) : Table Returns an existing database table.
listTableColumns ( $table, $database = null ) {@see AbstractSchemaManager::listTableColumns}
listTableDetails ( $tableName ) {@see AbstractSchemaManager::listTableDetails}
listTableForeignKeys ( $table, $database = null ) {@see AbstractSchemaManager::listTableForeignKeys}
listTableIndexes ( $table ) {@see AbstractSchemaManager::listTableIndexes}
migrate ( ) : Doctrine\DBAL\Schema\Schema Migrates the database.
renameTable ( $name, $newName ) {@see AbstractSchemaManager::renameTable}
tableExists ( string $table ) : boolean Returns true if the given table exists.
tablesExist ( array $tables ) : boolean Returns true if all the given tables exist.

보호된 메소드들

메소드 설명
replacePrefix ( string $query ) : string Replaces the table prefix placeholder with actual one.

메소드 상세

__call() 공개 메소드

Proxy method call to database schema manager.
public __call ( string $method, array $args ) : mixed
$method string
$args array
리턴 mixed

__construct() 공개 메소드

Constructor.
public __construct ( Pagekit\Database\Connection $connection )
$connection Pagekit\Database\Connection

createConstraint() 공개 메소드

{@see AbstractSchemaManager::createConstraint}
public createConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table )
$constraint Doctrine\DBAL\Schema\Constraint

createForeignKey() 공개 메소드

{@see AbstractSchemaManager::createForeignKey}
public createForeignKey ( Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, $table )
$foreignKey Doctrine\DBAL\Schema\ForeignKeyConstraint

createIndex() 공개 메소드

{@see AbstractSchemaManager::createIndex}
public createIndex ( Doctrine\DBAL\Schema\Index $index, $table )
$index Doctrine\DBAL\Schema\Index

createTable() 공개 메소드

Creates a new database table.
public createTable ( string $table, Closure $callback )
$table string
$callback Closure

dropAndCreateConstraint() 공개 메소드

{@see AbstractSchemaManager::dropAndCreateConstraint}
public dropAndCreateConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table )
$constraint Doctrine\DBAL\Schema\Constraint

dropAndCreateForeignKey() 공개 메소드

{@see AbstractSchemaManager::dropAndCreateForeignKey}
public dropAndCreateForeignKey ( Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, $table )
$foreignKey Doctrine\DBAL\Schema\ForeignKeyConstraint

dropAndCreateIndex() 공개 메소드

{@see AbstractSchemaManager::dropAndCreateIndex}
public dropAndCreateIndex ( Doctrine\DBAL\Schema\Index $index, $table )
$index Doctrine\DBAL\Schema\Index

dropAndCreateTable() 공개 메소드

{@see AbstractSchemaManager::dropAndCreateTable}
public dropAndCreateTable ( $table )

dropConstraint() 공개 메소드

{@see AbstractSchemaManager::dropConstraint}
public dropConstraint ( Doctrine\DBAL\Schema\Constraint $constraint, $table )
$constraint Doctrine\DBAL\Schema\Constraint

dropForeignKey() 공개 메소드

{@see AbstractSchemaManager::dropForeignKey}
public dropForeignKey ( $foreignKey, $table )

dropIndex() 공개 메소드

{@see AbstractSchemaManager::dropIndex}
public dropIndex ( $index, $table )

dropTable() 공개 메소드

또한 보기: AbstractSchemaManager::dropTable
public dropTable ( $table )

getSchemaManager() 공개 메소드

Return the DBAL schema manager.
public getSchemaManager ( ) : Doctrine\DBAL\Schema\AbstractSchemaManager
리턴 Doctrine\DBAL\Schema\AbstractSchemaManager

getTable() 공개 메소드

Returns an existing database table.
public getTable ( string $table ) : Table
$table string
리턴 Table

listTableColumns() 공개 메소드

{@see AbstractSchemaManager::listTableColumns}
public listTableColumns ( $table, $database = null )

listTableDetails() 공개 메소드

{@see AbstractSchemaManager::listTableDetails}
public listTableDetails ( $tableName )

listTableForeignKeys() 공개 메소드

{@see AbstractSchemaManager::listTableForeignKeys}
public listTableForeignKeys ( $table, $database = null )

listTableIndexes() 공개 메소드

{@see AbstractSchemaManager::listTableIndexes}
public listTableIndexes ( $table )

migrate() 공개 메소드

Migrates the database.
public migrate ( ) : Doctrine\DBAL\Schema\Schema
리턴 Doctrine\DBAL\Schema\Schema

renameTable() 공개 메소드

{@see AbstractSchemaManager::renameTable}
public renameTable ( $name, $newName )

replacePrefix() 보호된 메소드

Replaces the table prefix placeholder with actual one.
protected replacePrefix ( string $query ) : string
$query string
리턴 string

tableExists() 공개 메소드

Returns true if the given table exists.
public tableExists ( string $table ) : boolean
$table string
리턴 boolean

tablesExist() 공개 메소드

Returns true if all the given tables exist.
public tablesExist ( array $tables ) : boolean
$tables array
리턴 boolean

프로퍼티 상세

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

protected Connection,Pagekit\Database $connection
리턴 Pagekit\Database\Connection

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

protected AbstractSchemaManager,Doctrine\DBAL\Schema $manager
리턴 Doctrine\DBAL\Schema\AbstractSchemaManager

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

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