PHP 클래스 izzum\statemachine\persistence\Memory

This is the default persistence adapter for a Context. TRICKY: This memory adapter only functions during the execution of one (1) php process. Therefore, it is best used in a runtime environment such as a php daemon program or an interactive command line php script.
저자: Rolf Vreijdenberger
상속: extends Adapter
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 1 사용 예제들

공개 메소드들

메소드 설명
clear ( ) clears the storage facility.
get ( )
getEntityIds ( $machine, $state = null ) {@inheritDoc}
getStorageFromRegistry ( Identifier $identifier )
isPersisted ( Identifier $identifier ) {@inheritDoc}
processGetState ( Identifier $identifier ) {@inheritDoc}

보호된 메소드들

메소드 설명
addHistory ( Identifier $identifier, $state, $message = null, $is_exception = false ) {@inheritDoc}
getRegistry ( ) : StorageData[]
getStateFromRegistry ( Identifier $identifier )
insertState ( Identifier $identifier, $state, $message = null ) {@inheritDoc}
setStateInRegistry ( Identifier $identifier, string $state, $message = null )
updateState ( Identifier $identifier, $state, $message = null ) {@inheritDoc}
writeRegistry ( string $key, StorageData $value )

메소드 상세

addHistory() 보호된 메소드

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

clear() 공개 정적인 메소드

Not a method we want to have on the Adapter interface. this method is useful for testing.
public static clear ( )

get() 공개 정적인 메소드

public static get ( )

getEntityIds() 공개 메소드

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

getRegistry() 보호된 메소드

protected getRegistry ( ) : StorageData[]
리턴 StorageData[]

getStateFromRegistry() 보호된 메소드

protected getStateFromRegistry ( Identifier $identifier )
$identifier izzum\statemachine\Identifier

getStorageFromRegistry() 공개 메소드

public getStorageFromRegistry ( Identifier $identifier )
$identifier izzum\statemachine\Identifier

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

setStateInRegistry() 보호된 메소드

protected setStateInRegistry ( Identifier $identifier, string $state, $message = null )
$identifier izzum\statemachine\Identifier
$state string

updateState() 보호된 메소드

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

writeRegistry() 보호된 메소드

protected writeRegistry ( string $key, StorageData $value )
$key string
$value StorageData