PHP 클래스 PSR7Sessions\Storageless\Session\LazySession

상속: implements PSR7Sessions\Storageless\Session\SessionInterface
파일 보기 프로젝트 열기: Ocramius/PSR7Session 1 사용 예제들

공개 메소드들

메소드 설명
clear ( ) {@inheritDoc}
fromContainerBuildingCallback ( callable $sessionLoader ) : self
get ( string $key, $default = null ) {@inheritDoc}
has ( string $key ) : boolean {@inheritDoc}
hasChanged ( ) : boolean {@inheritDoc}
isEmpty ( ) : boolean {@inheritDoc}
jsonSerialize ( ) {@inheritDoc}
remove ( string $key ) {@inheritDoc}
set ( string $key, $value ) {@inheritDoc}

비공개 메소드들

메소드 설명
__construct ( ) Instantiation via __construct is not allowed, use {@see LazySession::fromContainerBuildingCallback} instead
getRealSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface Get or initialize the session
loadSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface Type-safe wrapper that ensures that the given callback returns the expected type of object, when called

메소드 상세

clear() 공개 메소드

{@inheritDoc}
public clear ( )

fromContainerBuildingCallback() 공개 정적인 메소드

public static fromContainerBuildingCallback ( callable $sessionLoader ) : self
$sessionLoader callable
리턴 self

get() 공개 메소드

{@inheritDoc}
public get ( string $key, $default = null )
$key string

has() 공개 메소드

{@inheritDoc}
public has ( string $key ) : boolean
$key string
리턴 boolean

hasChanged() 공개 메소드

{@inheritDoc}
public hasChanged ( ) : boolean
리턴 boolean

isEmpty() 공개 메소드

{@inheritDoc}
public isEmpty ( ) : boolean
리턴 boolean

jsonSerialize() 공개 메소드

{@inheritDoc}
public jsonSerialize ( )

remove() 공개 메소드

{@inheritDoc}
public remove ( string $key )
$key string

set() 공개 메소드

{@inheritDoc}
public set ( string $key, $value )
$key string