PHP 클래스 s, kirby

파일 보기 프로젝트 열기: bastianallgeier/kirby 1 사용 예제들

공개 메소드들

메소드 설명
destroy ( ) Destroys a session
get ( mixed $key = false, mixed $default = null ) : mixed Gets a session value by key
id ( ) : string Returns the current session id
remove ( mixed $key ) : array Removes a value from the session by key
restart ( ) Destroys a session first and then starts it again
set ( mixed $key, mixed $value = false ) Sets a session value by key
start ( ) Starts a new session

메소드 상세

destroy() 정적인 공개 메소드

Destroys a session
static public destroy ( )

get() 정적인 공개 메소드

Gets a session value by key
static public get ( mixed $key = false, mixed $default = null ) : mixed
$key mixed The key to look for. Pass false or null to return the entire session array.
$default mixed Optional default value, which should be returned if no element has been found
리턴 mixed

id() 정적인 공개 메소드

Returns the current session id
static public id ( ) : string
리턴 string

remove() 정적인 공개 메소드

Removes a value from the session by key
static public remove ( mixed $key ) : array
$key mixed The key to remove by
리턴 array The session array without the value

restart() 정적인 공개 메소드

Destroys a session first and then starts it again
static public restart ( )

set() 정적인 공개 메소드

Sets a session value by key
static public set ( mixed $key, mixed $value = false )
$key mixed The key to define
$value mixed The value for the passed key

start() 정적인 공개 메소드

Starts a new session
static public start ( )