PHP 클래스 izzum\statemachine\persistence\Session

Keep in mind that: - php sessions have a limited lifetime. - php sessions itself can have a different backend adapter, configurable. - php sessions are only valid for one user's session (unless a session id is forced) A simple adapter for a proof of concept and an example. it's possible to use this adapter for for instance gui wizards. see also the /examples/session for how to use this adapter. TRICKY: make sure output is not already sent when instantiating this adapter.
저자: Rolf Vreijdenberger
상속: extends Adapter
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine

공개 메소드들

메소드 설명
__construct ( string $namespace = 'izzum', string $session_id = null )
getEntityIds ( $machine, $state = null ) {@inheritDoc}
isPersisted ( Identifier $identifier ) {@inheritDoc}
processGetState ( Identifier $identifier ) {@inheritDoc}

보호된 메소드들

메소드 설명
insertState ( Identifier $identifier, $state, $message = null ) {@inheritDoc}
updateState ( Identifier $identifier, $state, $message = null ) {@inheritDoc}

메소드 상세

__construct() 공개 메소드

public __construct ( string $namespace = 'izzum', string $session_id = null )
$namespace string optional, defaults to izzum
$session_id string optional force a session id, used for testing purposes

getEntityIds() 공개 메소드

{@inheritDoc}
public getEntityIds ( $machine, $state = null )

insertState() 보호된 메소드

{@inheritDoc}
protected insertState ( Identifier $identifier, $state, $message = null )
$identifier izzum\statemachine\Identifier

isPersisted() 공개 메소드

{@inheritDoc}
public isPersisted ( Identifier $identifier )
$identifier izzum\statemachine\Identifier

processGetState() 공개 메소드

{@inheritDoc}
public processGetState ( Identifier $identifier )
$identifier izzum\statemachine\Identifier

updateState() 보호된 메소드

{@inheritDoc}
protected updateState ( Identifier $identifier, $state, $message = null )
$identifier izzum\statemachine\Identifier