Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getName () | |
setName (string $name) | |
getId () | |
setId (string $id) | |
isActive () | |
isStarted () | |
get (string $name, $default) | |
set (string $name, $value) | |
has (string $name) | |
remove (string $name) | |
clear () | |
all () | |
start () | |
regenerate (bool $destroy=false) | |
close () | |
gc () | |
abort () | |
Interface defining a Joomla! session storage object
abort | ( | ) |
Aborts the current session
Implémenté dans NativeStorage, et RuntimeStorage.
all | ( | ) |
Retrieves all variables from the session store
Implémenté dans JoomlaStorage, NativeStorage, et RuntimeStorage.
clear | ( | ) |
Clears all variables from the session store
Implémenté dans JoomlaStorage, NativeStorage, et RuntimeStorage.
close | ( | ) |
Writes session data and ends session
Implémenté dans JoomlaStorage, NativeStorage, et RuntimeStorage.
gc | ( | ) |
Perform session data garbage collection
Implémenté dans NativeStorage, et RuntimeStorage.
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émenté dans NativeStorage, RuntimeStorage, et JoomlaStorage.
getId | ( | ) |
Get the session ID
Implémenté dans NativeStorage, et RuntimeStorage.
getName | ( | ) |
Get the session name
Implémenté dans NativeStorage, et RuntimeStorage.
has | ( | string | $name | ) |
Check whether data exists in the session store
string | $name | Name of variable |
Implémenté dans NativeStorage, RuntimeStorage, et JoomlaStorage.
isActive | ( | ) |
Check if the session is active
Implémenté dans NativeStorage, et RuntimeStorage.
isStarted | ( | ) |
Check if the session is started
Implémenté dans NativeStorage, et RuntimeStorage.
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émenté dans NativeStorage, et RuntimeStorage.
remove | ( | string | $name | ) |
Unset a variable from the session store
string | $name | Name of variable |
Implémenté dans NativeStorage, RuntimeStorage, et JoomlaStorage.
set | ( | string | $name, |
$value | |||
) |
Set data into the session store
string | $name | Name of a variable |
mixed | $value | Value of a variable |
Implémenté dans NativeStorage, RuntimeStorage, et JoomlaStorage.
setId | ( | string | $id | ) |
Set the session ID
string | $id | The session ID |
Implémenté dans NativeStorage, et RuntimeStorage.
setName | ( | string | $name | ) |
Set the session name
string | $name | The session name |
Implémenté dans NativeStorage, et RuntimeStorage.
start | ( | ) |
Start a session
Implémenté dans NativeStorage, RuntimeStorage, et JoomlaStorage.