PHP Класс Bolt\Storage\Database\Schema\SchemaCheck

Автор: Gawain Lynch ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addHint ( string $hint ) Add a hint.
addMessage ( string $tableName, string $message ) Add a message.
addTitle ( string $tableName, string $title ) Add title message.
checkDiff ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Check a Comparator diff and store the messages that make it up.
getDiff ( ) : Doctrine\DBAL\Schema\TableDiff[] Get a table diffs.
getHints ( ) : array Get the hints.
getMessages ( ) : array Get the messages.
getResponseStrings ( ) : string[] Get the response messages as a string.
getTitles ( ) : array Get the message titles.
hasHints ( ) : boolean Check is there are pending hints.
hasResponses ( ) : boolean Check is there are pending responses.

Приватные методы

Метод Описание
addForeignKeysMessage ( string $tableName, Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, string $format ) Add a message for a foreign key change.
getAddedColumns ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record added columns.
getAddedForeignKeys ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record added foreign key(s).
getAddedIndexes ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record added indexes.
getChangedColumns ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record changed columns.
getChangedForeignKeys ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record changed foreign key(s).
getChangedIndexes ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record changed indexes.
getRemovedColumns ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record removed columns.
getRemovedForeignKeys ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record removed foreign key(s).
getRemovedIndexes ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record removed indexes.
getRenamedColumns ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff ) Record renamed columns.

Описание методов

addHint() публичный Метод

Add a hint.
public addHint ( string $hint )
$hint string

addMessage() публичный Метод

Add a message.
public addMessage ( string $tableName, string $message )
$tableName string
$message string

addTitle() публичный Метод

Add title message.
public addTitle ( string $tableName, string $title )
$tableName string
$title string

checkDiff() публичный Метод

Check a Comparator diff and store the messages that make it up.
public checkDiff ( string $tableName, Doctrine\DBAL\Schema\TableDiff $diff )
$tableName string
$diff Doctrine\DBAL\Schema\TableDiff

getDiff() публичный Метод

Get a table diffs.
public getDiff ( ) : Doctrine\DBAL\Schema\TableDiff[]
Результат Doctrine\DBAL\Schema\TableDiff[]

getHints() публичный Метод

Get the hints.
public getHints ( ) : array
Результат array

getMessages() публичный Метод

Get the messages.
public getMessages ( ) : array
Результат array

getResponseStrings() публичный Метод

Get the response messages as a string.
public getResponseStrings ( ) : string[]
Результат string[]

getTitles() публичный Метод

Get the message titles.
public getTitles ( ) : array
Результат array

hasHints() публичный Метод

Check is there are pending hints.
public hasHints ( ) : boolean
Результат boolean

hasResponses() публичный Метод

Check is there are pending responses.
public hasResponses ( ) : boolean
Результат boolean