Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
all () | |
clear () | |
close () | |
gc () | |
abort () | |
get (string $name, $default) | |
getId () | |
getName () | |
has (string $name) | |
isActive () | |
isStarted () | |
remove (string $name) | |
regenerate (bool $destroy=false) | |
set (string $name, $value=null) | |
setId (string $id) | |
setName (string $name) | |
start () | |
Fonctions membres privées | |
generateId () | |
Attributs privés | |
$active = false | |
$closed = false | |
$data = [] | |
$id = '' | |
$name = 'MockSession' | |
$started = false | |
Session storage object that stores objects in Runtime memory. This is designed for use in CLI Apps, including unit testing applications in PHPUnit.
abort | ( | ) |
Aborts the current session
Implémente StorageInterface.
all | ( | ) |
Retrieves all variables from the session store
Implémente StorageInterface.
Références RuntimeStorage\$data.
clear | ( | ) |
close | ( | ) |
Writes session data and ends session
Implémente StorageInterface.
gc | ( | ) |
Perform session data garbage collection
Implémente StorageInterface.
|
private |
Generates a session ID
Référencé par RuntimeStorage\regenerate(), et RuntimeStorage\start().
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, RuntimeStorage\$name, RuntimeStorage\isStarted(), et RuntimeStorage\start().
getId | ( | ) |
Get the session ID
Implémente StorageInterface.
Références RuntimeStorage\$id.
getName | ( | ) |
Get the session name
Implémente StorageInterface.
Références RuntimeStorage\$name.
has | ( | string | $name | ) |
Check whether data exists in the session store
string | $name | Name of variable |
Implémente StorageInterface.
Références RuntimeStorage\$name, RuntimeStorage\isStarted(), et RuntimeStorage\start().
isActive | ( | ) |
Check if the session is active
Implémente StorageInterface.
Références RuntimeStorage\$started.
Référencé par RuntimeStorage\regenerate(), RuntimeStorage\setId(), RuntimeStorage\setName(), et RuntimeStorage\start().
isStarted | ( | ) |
Check if the session is started
Implémente StorageInterface.
Références RuntimeStorage\$started.
Référencé par RuntimeStorage\get(), RuntimeStorage\has(), RuntimeStorage\remove(), RuntimeStorage\set(), et RuntimeStorage\start().
regenerate | ( | bool | $destroy = false | ) |
Regenerates the session ID that represents this storage.
This method must invoke session_regenerate_id($destroy) unless this interface is used for a storage object designed for unit or functional testing where a real PHP session would interfere with testing.
boolean | $destroy | Destroy session when regenerating? |
Implémente StorageInterface.
Références RuntimeStorage\generateId(), et RuntimeStorage\isActive().
remove | ( | string | $name | ) |
Unset a variable from the session store
string | $name | Name of variable |
Implémente StorageInterface.
Références RuntimeStorage\$name, RuntimeStorage\isStarted(), null, et RuntimeStorage\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 RuntimeStorage\$name, $value, RuntimeStorage\isStarted(), null, et RuntimeStorage\start().
setId | ( | string | $id | ) |
Set the session ID
string | $id | The session ID |
Implémente StorageInterface.
Références RuntimeStorage\$id, $this, et RuntimeStorage\isActive().
Référencé par RuntimeStorage\start().
setName | ( | string | $name | ) |
Set the session name
string | $name | The session name |
Implémente StorageInterface.
Références RuntimeStorage\$name, $this, RuntimeStorage\isActive(), et name.
start | ( | ) |
Start a session
Implémente StorageInterface.
Références RuntimeStorage\generateId(), RuntimeStorage\isActive(), RuntimeStorage\isStarted(), et RuntimeStorage\setId().
Référencé par RuntimeStorage\get(), RuntimeStorage\has(), RuntimeStorage\remove(), et RuntimeStorage\set().
|
private |
|
private |
|
private |
Référencé par RuntimeStorage\all().
|
private |
Référencé par RuntimeStorage\getId(), et RuntimeStorage\setId().
|
private |
|
private |
Référencé par RuntimeStorage\isActive(), et RuntimeStorage\isStarted().