PHP 클래스 ManaPHP\Http\Session

상속: extends ManaPHP\Component, implements ManaPHP\Http\SessionInterface, implements ArrayAccess
파일 보기 프로젝트 열기: manaphp/manaphp

공개 프로퍼티들

프로퍼티 타입 설명
$adapter ManaPHP\Http\Session\AdapterInterface

공개 메소드들

메소드 설명
__construct ( string | array | ManaPHP\Http\Session\AdapterInterface $options = [] ) Session constructor.
__debugInfo ( ) : array
__destruct ( )
clean ( ) : void
destroy ( ) : void Destroys the active session
get ( string $name = null, mixed $defaultValue = null ) : mixed Gets a session variable from an application context
getSessionId ( ) : string
has ( string $name ) : boolean Check whether a session variable is set in an application context
offsetExists ( mixed $offset ) : boolean
offsetGet ( mixed $offset ) : mixed
offsetSet ( mixed $offset, mixed $value )
offsetUnset ( mixed $offset )
remove ( string $name ) Removes a session variable from an application context
set ( string $name, mixed $value ) Sets a session variable in an application context
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

메소드 상세

__construct() 공개 메소드

Session constructor.
public __construct ( string | array | ManaPHP\Http\Session\AdapterInterface $options = [] )
$options string | array | ManaPHP\Http\Session\AdapterInterface

__debugInfo() 공개 메소드

public __debugInfo ( ) : array
리턴 array

__destruct() 공개 메소드

public __destruct ( )

clean() 공개 메소드

public clean ( ) : void
리턴 void

destroy() 공개 메소드

Destroys the active session
public destroy ( ) : void
리턴 void

get() 공개 메소드

Gets a session variable from an application context
public get ( string $name = null, mixed $defaultValue = null ) : mixed
$name string
$defaultValue mixed
리턴 mixed

getSessionId() 공개 메소드

public getSessionId ( ) : string
리턴 string

has() 공개 메소드

Check whether a session variable is set in an application context
public has ( string $name ) : boolean
$name string
리턴 boolean

offsetExists() 공개 메소드

public offsetExists ( mixed $offset ) : boolean
$offset mixed
리턴 boolean

offsetGet() 공개 메소드

public offsetGet ( mixed $offset ) : mixed
$offset mixed
리턴 mixed

offsetSet() 공개 메소드

public offsetSet ( mixed $offset, mixed $value )
$offset mixed
$value mixed

offsetUnset() 공개 메소드

public offsetUnset ( mixed $offset )
$offset mixed

remove() 공개 메소드

Removes a session variable from an application context
public remove ( string $name )
$name string

set() 공개 메소드

Sets a session variable in an application context
public set ( string $name, mixed $value )
$name string
$value mixed

setDependencyInjector() 공개 메소드

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
리턴 static

프로퍼티 상세

$adapter 공개적으로 프로퍼티

public AdapterInterface,ManaPHP\Http\Session $adapter
리턴 ManaPHP\Http\Session\AdapterInterface