메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 ( ) : |
||
리턴 |
protected getErrorInfo ( PDOStatement $statement ) : string | ||
$statement | PDOStatement | |
리턴 | string |
public getLoaderData ( string $machine ) : |
||
$machine | string | the machine name |
리턴 |
protected getTimestampForDriver ( ) : number | string | ||
리턴 | number | string |
public getTransitions ( string $machine ) : [][] | ||
$machine | string | |
리턴 | [][] |
protected insertState ( |
||
$identifier |
public isPersisted ( |
||
$identifier |
public load ( |
||
$statemachine |
public processGetState ( |
||
$identifier |
public setConnection ( |
||
$connection |
protected updateState ( |
||
$identifier |