PHP 클래스 lithium\storage\session\adapter\Memory

상속: extends lithium\core\Object
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_session Holds the array that corresponds to session keys & values.

공개 메소드들

메소드 설명
check ( string $key, array $options = [] ) : Closure Checks if a value has been set in the session.
clear ( array $options = [] ) : Closure Clears all keys from the session.
delete ( string $key, array $options = [] ) : Closure Delete value from the session
enabled ( ) : boolean This adapter is always enabled, as it has no external dependencies.
isStarted ( ) : boolean The memory adapter session is always "on".
key ( ) : string Obtain the session key.
read ( null | string $key = null, array $options = [] ) : Closure Read a value from the session.
write ( string $key, mixed $value, array $options = [] ) : Closure Write a value to the session.

메소드 상세

check() 공개 메소드

Checks if a value has been set in the session.
public check ( string $key, array $options = [] ) : Closure
$key string Key of the entry to be checked.
$options array Options array. Not used for this adapter method.
리턴 Closure Function returning boolean `true` if the key exists, `false` otherwise.

clear() 공개 메소드

Clears all keys from the session.
public clear ( array $options = [] ) : Closure
$options array Options array. Not used for this adapter method.
리턴 Closure Function that clears the session

delete() 공개 메소드

Delete value from the session
public delete ( string $key, array $options = [] ) : Closure
$key string The key to be deleted
$options array Options array. Not used for this adapter method.
리턴 Closure Function returning boolean `true` on successful delete, `false` otherwise

enabled() 공개 정적인 메소드

This adapter is always enabled, as it has no external dependencies.
public static enabled ( ) : boolean
리턴 boolean True

isStarted() 공개 메소드

The memory adapter session is always "on".
public isStarted ( ) : boolean
리턴 boolean True.

key() 공개 정적인 메소드

For this adapter, it is a UUID.
public static key ( ) : string
리턴 string UUID.

read() 공개 메소드

Read a value from the session.
public read ( null | string $key = null, array $options = [] ) : Closure
$key null | string Key of the entry to be read. If no key is passed, all current session data is returned.
$options array Options array. Not used for this adapter method.
리턴 Closure Function returning data in the session if successful, `false` otherwise.

write() 공개 메소드

Write a value to the session.
public write ( string $key, mixed $value, array $options = [] ) : Closure
$key string Key of the item to be stored.
$value mixed The value to be stored.
$options array Options array. Not used for this adapter method.
리턴 Closure Function returning boolean `true` on successful write, `false` otherwise.

프로퍼티 상세

$_session 공개적으로 프로퍼티

Holds the array that corresponds to session keys & values.
public $_session