PHP Class Bolt\Storage\Database\Schema\SchemaCheck

Author: Gawain Lynch ([email protected])
Datei anzeigen Open project: bolt/bolt Class Usage Examples

Public Methods

Method 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

Method 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 method

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

addMessage() public method

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

addTitle() public method

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

checkDiff() public method

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 method

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

getHints() public method

Get the hints.
public getHints ( ) : array
return array

getMessages() public method

Get the messages.
public getMessages ( ) : array
return array

getResponseStrings() public method

Get the response messages as a string.
public getResponseStrings ( ) : string[]
return string[]

getTitles() public method

Get the message titles.
public getTitles ( ) : array
return array

hasHints() public method

Check is there are pending hints.
public hasHints ( ) : boolean
return boolean

hasResponses() public method

Check is there are pending responses.
public hasResponses ( ) : boolean
return boolean