Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (Input $input, \SessionHandlerInterface $handler=null, array $options=[]) | |
all () | |
clear () | |
close () | |
get (string $name, $default) | |
has (string $name) | |
remove (string $name) | |
set (string $name, $value=null) | |
setOptions (array $options) | |
start () | |
Fonctions membres publiques hérités de NativeStorage | |
__construct (?\SessionHandlerInterface $handler=null, array $options=[]) | |
all () | |
clear () | |
close () | |
gc () | |
abort () | |
get (string $name, $default) | |
getHandler () | |
getId () | |
getName () | |
has (string $name) | |
isActive () | |
isStarted () | |
remove (string $name) | |
regenerate (bool $destroy=false) | |
set (string $name, $value=null) | |
setHandler (?\SessionHandlerInterface $handler=null) | |
setId (string $id) | |
setName (string $name) | |
setOptions (array $options) | |
start () | |
Fonctions membres protégées | |
setCookieParams () | |
Attributs privés | |
$data | |
$forceSSL = false | |
$input | |
Service provider for the application's session dependency
Constructor
Input | $input | Input object |
\SessionHandlerInterface | $handler | Session save handler |
array | $options | Session options |
Références $input, $options, $this, Session\isActive(), et Session\setOptions().
all | ( | ) |
Retrieves all variables from the session store
Implémente StorageInterface.
clear | ( | ) |
Clears all variables from the session store
Implémente StorageInterface.
Références $app, Factory\getApplication(), et Session\getName().
close | ( | ) |
Writes session data and ends session
Implémente StorageInterface.
get | ( | string | $name, |
$default | |||
) |
Get data from the session store
string | $name | Name of a variable |
mixed | $default | Default value of a variable if not set |
Implémente StorageInterface.
Références $default, $name, Session\isStarted(), et Session\start().
has | ( | string | $name | ) |
Check whether data exists in the session store
string | $name | Name of variable |
Implémente StorageInterface.
Références $name, Session\isStarted(), et Session\start().
remove | ( | string | $name | ) |
Unset a variable from the session store
string | $name | Name of variable |
Implémente StorageInterface.
Références $name, Session\isStarted(), et Session\start().
set | ( | string | $name, |
$value = null |
|||
) |
Set data into the session store
string | $name | Name of a variable. |
mixed | $value | Value of a variable. |
Implémente StorageInterface.
Références $name, $value, Session\isStarted(), et Session\start().
|
protected |
Set session cookie parameters
Références $app, Factory\getApplication(), et Session\isActive().
setOptions | ( | array | $options | ) |
Sets session options
array | $options | Session ini directives array(key => value). |
Références $options.
start | ( | ) |
Start a session
Implémente StorageInterface.
Références Session\getName(), et Session\setId().
|
private |
|
private |
|
private |