Méthode | Description | |
---|---|---|
__construct ( string $dsn, string $user = null, string $password = null, array $options = [] ) | ||
__destruct ( ) | do some cleanup | |
addHistory ( |
{@inheritDoc} | |
getConnection ( ) : |
get the connection to a database via the PDO adapter. | |
getEntityIds ( $machine, $state = null ) | {@inheritDoc} | |
getLoaderData ( string $machine ) : |
gets all data for transitions. | |
getPrefix ( ) : string | get the table prefix | |
getTransitions ( string $machine ) : [][] | get all the ordered transition and state information for a specific machine. | |
getType ( ) : string | ||
isPersisted ( |
{@inheritDoc} | |
load ( |
{@inheritDoc} This is an implemented method from the Loader interface. | |
processGetState ( |
{@inheritDoc} | |
setConnection ( |
set the PDO connection explicitely, useful if you want to share the PDO instance when it is created outside this class. | |
setPrefix ( string $prefix ) | set the table prefix to be used |
Méthode | Description | |
---|---|---|
getBooleanForDriver ( boolean $boolean ) : boolean | integer | string | hook method. | |
getErrorInfo ( PDOStatement $statement ) : string | collects error information ready to be used as output. | |
getTimestampForDriver ( ) : number | string | hook method | |
insertState ( |
{@inheritDoc} | |
setupConnection ( |
||
updateState ( |
{@inheritDoc} |
public __construct ( string $dsn, string $user = null, string $password = null, array $options = [] ) | ||
$dsn | string | a PDO data source name example: 'pgsql:host=localhost;port=5432;dbname=izzum' |
$user | string | optional, defaults to null |
$password | string | optional, defaults to null |
$options | array | optional, defaults to empty array. |
public addHistory ( |
||
$identifier |
public getConnection ( ) : |
||
Résultat |
protected getErrorInfo ( PDOStatement $statement ) : string | ||
$statement | PDOStatement | |
Résultat | string |
public getLoaderData ( string $machine ) : |
||
$machine | string | the machine name |
Résultat |
protected getTimestampForDriver ( ) : number | string | ||
Résultat | number | string |
public getTransitions ( string $machine ) : [][] | ||
$machine | string | |
Résultat | [][] |
protected insertState ( |
||
$identifier |
public isPersisted ( |
||
$identifier |
public load ( |
||
$statemachine |
public processGetState ( |
||
$identifier |
public setConnection ( |
||
$connection |
protected updateState ( |
||
$identifier |