|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Entry point to the namespace-scoped key-value storages of ILIAS. More...
Inheritance diagram for ILIAS\KeyValueStorage\Services:
Collaboration diagram for ILIAS\KeyValueStorage\Services:Public Member Functions | |
| session (array $namespace) | |
| Storage bound to the current user session. More... | |
| persistent (array $namespace) | |
| Storage that survives session boundaries until changed or cleared. More... | |
| persistentFor (SubjectResolver $subjects, array $namespace) | |
| Persistent storage for the subject the resolver names. More... | |
| purgeSubject (SubjectId $subject) | |
| Removes every subject-scoped entry for this subject, in every namespace. More... | |
Entry point to the namespace-scoped key-value storages of ILIAS.
The scope is chosen by the accessor: session storage is bound to the current user session, persistent storage survives session boundaries until it is changed or cleared.
Definition at line 33 of file Services.php.
| ILIAS\KeyValueStorage\Services::persistent | ( | array | $namespace | ) |
Storage that survives session boundaries until changed or cleared.
This storage has no subject: it is shared by every user of the installation and only reads rows whose provider and subject are empty. Per-subject state belongs in {
| list<string> | $namespace namespace segments; joined with "." internally |
Implemented in ILIAS\KeyValueStorage\Internal\StorageServices.
| ILIAS\KeyValueStorage\Services::persistentFor | ( | SubjectResolver | $subjects, |
| array | $namespace | ||
| ) |
Persistent storage for the subject the resolver names.
Anonymous and any other non-named subject are rejected. The subject is a parameter of the storage, never part of the namespace or the key.
| list<string> | $namespace namespace segments; joined with "." internally |
InvalidArgumentException if the resolver does not name a subject, or the subject's provider is not contributed under its name
Implemented in ILIAS\KeyValueStorage\Internal\StorageServices.
| ILIAS\KeyValueStorage\Services::purgeSubject | ( | SubjectId | $subject | ) |
Removes every subject-scoped entry for this subject, in every namespace.
Global installation state from {
InvalidArgumentException if the subject's provider is not contributed under its name
Implemented in ILIAS\KeyValueStorage\Internal\StorageServices.
| ILIAS\KeyValueStorage\Services::session | ( | array | $namespace | ) |
Storage bound to the current user session.
| list<string> | $namespace namespace segments; joined with "." internally |
Implemented in ILIAS\KeyValueStorage\Internal\StorageServices.