PHP Класс ManaPHP\Http\Session

Наследование: extends ManaPHP\Component, implements ManaPHP\Http\SessionInterface, implements ArrayAccess
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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