Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (AbstractApplication $app, DatabaseInterface $db) | |
createRecordIfNonExisting (SessionInterface $session, User $user) | |
createOrUpdateRecord (SessionInterface $session, User $user) | |
deletePriorTo ($time) | |
Fonctions membres privées | |
checkSessionRecordExists (string $sessionId) | |
createSessionRecord (SessionInterface $session, User $user) | |
updateSessionRecord (SessionInterface $session, User $user) | |
Attributs privés | |
$app | |
$db | |
Attributs privés statiques | |
static | $sessionRecordExists = 1 |
static | $sessionRecordDoesNotExist = 0 |
static | $sessionRecordUnknown = -1 |
Manager for optional session metadata.
__construct | ( | AbstractApplication | $app, |
DatabaseInterface | $db | ||
) |
MetadataManager constructor.
AbstractApplication | $app | Application object. |
DatabaseInterface | $db | Database driver. |
|
private |
Check if the session record exists
string | $sessionId | The session ID to check |
Références $query.
createOrUpdateRecord | ( | SessionInterface | $session, |
User | $user | ||
) |
Create the metadata record if it does not exist.
SessionInterface | $session | The session to create or update the metadata record for. |
User | $user | The user to associate with the record. |
Références $user, et SessionInterface\getId().
createRecordIfNonExisting | ( | SessionInterface | $session, |
User | $user | ||
) |
Create the metadata record if it does not exist.
SessionInterface | $session | The session to create the metadata record for. |
User | $user | The user to associate with the record. |
Références $user, et SessionInterface\getId().
|
private |
Create the session record
SessionInterface | $session | The session to create the metadata record for. |
User | $user | The user to associate with the record. |
Références $clientId, $columns, $query, $user, $userId, SessionInterface\get(), AbstractApplication\get(), SessionInterface\getId(), ParameterType\INTEGER, SessionInterface\isNew(), et null.
deletePriorTo | ( | $time | ) |
Delete records with a timestamp prior to the given time.
integer | $time | The time records should be deleted if expired before. |
Références $query, et ParameterType\INTEGER.
|
private |
Update the session record
SessionInterface | $session | The session to update the metadata record for. |
User | $user | The user to associate with the record. |
Références $clientId, $query, $user, $userId, AbstractApplication\get(), SessionInterface\getId(), ParameterType\INTEGER, et null.
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |