PHP Class ManaPHP\Http\Session

Inheritance: extends ManaPHP\Component, implements ManaPHP\Http\SessionInterface, implements ArrayAccess
Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Свойство Type Description
$adapter ManaPHP\Http\Session\AdapterInterface

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

__debugInfo() public méthode

public __debugInfo ( ) : array
Résultat array

__destruct() public méthode

public __destruct ( )

clean() public méthode

public clean ( ) : void
Résultat void

destroy() public méthode

Destroys the active session
public destroy ( ) : void
Résultat void

get() public méthode

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

getSessionId() public méthode

public getSessionId ( ) : string
Résultat string

has() public méthode

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

offsetExists() public méthode

public offsetExists ( mixed $offset ) : boolean
$offset mixed
Résultat boolean

offsetGet() public méthode

public offsetGet ( mixed $offset ) : mixed
$offset mixed
Résultat mixed

offsetSet() public méthode

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

offsetUnset() public méthode

public offsetUnset ( mixed $offset )
$offset mixed

remove() public méthode

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

set() public méthode

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

setDependencyInjector() public méthode

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Résultat static

Property Details

$adapter public_oe property

public AdapterInterface,ManaPHP\Http\Session $adapter
Résultat ManaPHP\Http\Session\AdapterInterface