PHP Class Bolt\Storage\Database\Schema\SchemaCheck

Author: Gawain Lynch ([email protected])
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

addHint() public méthode

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

addMessage() public méthode

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

addTitle() public méthode

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

checkDiff() public méthode

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() public méthode

Get a table diffs.
public getDiff ( ) : Doctrine\DBAL\Schema\TableDiff[]
Résultat Doctrine\DBAL\Schema\TableDiff[]

getHints() public méthode

Get the hints.
public getHints ( ) : array
Résultat array

getMessages() public méthode

Get the messages.
public getMessages ( ) : array
Résultat array

getResponseStrings() public méthode

Get the response messages as a string.
public getResponseStrings ( ) : string[]
Résultat string[]

getTitles() public méthode

Get the message titles.
public getTitles ( ) : array
Résultat array

hasHints() public méthode

Check is there are pending hints.
public hasHints ( ) : boolean
Résultat boolean

hasResponses() public méthode

Check is there are pending responses.
public hasResponses ( ) : boolean
Résultat boolean