PHP 클래스 BaiduStore, thinksns

저자: zhujianting([email protected])
파일 보기 프로젝트 열기: medz/thinksns-4 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$clientId
$supportedKeys array Supported variable key name.

공개 메소드들

메소드 설명
__construct ( $clientId )
get ( string $key, mix $default = false ) : mix Get the variable value specified by the variable key name for current session user from the storage system.
remove ( string $key ) : boolean Remove the stored variable item specified by the variable key name from the storage system for current session user.
removeAll ( ) : boolean Remove all the stored variable items for current session user from the storage system.
set ( string $key, mix $value ) : boolean Save the variable item specified by the variable key name into the storage system for current session user.

보호된 메소드들

메소드 설명
getKeyForStore ( string $key ) : string Get the actual key name for current storage engine.

메소드 상세

__construct() 공개 메소드

public __construct ( $clientId )

get() 추상적인 공개 메소드

Get the variable value specified by the variable key name for current session user from the storage system.
abstract public get ( string $key, mix $default = false ) : mix
$key string Variable key name
$default mix Default value if the key couldn't be found
리턴 mix Returns the value for the specified key if it exists, otherwise return $default value

getKeyForStore() 보호된 메소드

Get the actual key name for current storage engine.
protected getKeyForStore ( string $key ) : string
$key string The original key name
리턴 string

remove() 추상적인 공개 메소드

Remove the stored variable item specified by the variable key name from the storage system for current session user.
abstract public remove ( string $key ) : boolean
$key string Variable key name
리턴 boolean Returns true if remove success, otherwise returns false

removeAll() 추상적인 공개 메소드

Remove all the stored variable items for current session user from the storage system.
abstract public removeAll ( ) : boolean
리턴 boolean Returns true if remove success, otherwise returns false

set() 추상적인 공개 메소드

Save the variable item specified by the variable key name into the storage system for current session user.
abstract public set ( string $key, mix $value ) : boolean
$key string Variable key name
$value mix Variable value
리턴 boolean Returns true if the saving operation is success, otherwise returns false

프로퍼티 상세

$clientId 보호되어 있는 프로퍼티

protected $clientId

$supportedKeys 보호되어 있는 정적으로 프로퍼티

Supported variable key name.
protected static array $supportedKeys
리턴 array