PHP 인터페이스 yii\authclient\StateStorageInterface

Herein 'state' means a named variable, which is persistent between different requests. Note: in order to function correctly state storage should vary depending on application session, e.g. different web users should not share state with the same name.
부터: 2.1
저자: Paul Klimov ([email protected])
파일 보기 프로젝트 열기: yiisoft/yii2-authclient

공개 메소드들

메소드 설명
get ( string $key ) : mixed Returns the state variable value with the variable name.
remove ( string $key ) : boolean Removes a state variable.
set ( string $key, mixed $value ) Adds a state variable.

메소드 상세

get() 공개 메소드

If the variable does not exist, the $defaultValue will be returned.
public get ( string $key ) : mixed
$key string the variable name
리턴 mixed the variable value, or `null` if the variable does not exist.

remove() 공개 메소드

Removes a state variable.
public remove ( string $key ) : boolean
$key string the name of the variable to be removed
리턴 boolean success.

set() 공개 메소드

If the specified name already exists, the old value will be overwritten.
public set ( string $key, mixed $value )
$key string variable name
$value mixed variable value