|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\KeyValueStorage\Internal\StorageServices:
Collaboration diagram for ILIAS\KeyValueStorage\Internal\StorageServices:Public Member Functions | |
| __construct (private readonly SessionRepository $session, private readonly Repository $persistent, private readonly SubjectRepository $subjects, private readonly SubjectProviders $providers, Refinery $refinery) | |
| 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... | |
| 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... | |
Private Member Functions | |
| subjectScope (SubjectId $subject) | |
| store (string $scope, StorageNamespace $namespace, Repository $repository) | |
Private Attributes | |
| readonly KeyRules | $key_rules |
| readonly Values | $values |
| array | $stores = [] |
Definition at line 35 of file StorageServices.php.
| ILIAS\KeyValueStorage\Internal\StorageServices::__construct | ( | private readonly SessionRepository | $session, |
| private readonly Repository | $persistent, | ||
| private readonly SubjectRepository | $subjects, | ||
| private readonly SubjectProviders | $providers, | ||
| Refinery | $refinery | ||
| ) |
Definition at line 44 of file StorageServices.php.
References ILIAS\UI\examples\Layout\Page\Mail\$refinery.
| ILIAS\KeyValueStorage\Internal\StorageServices::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 |
Implements ILIAS\KeyValueStorage\Services.
Definition at line 60 of file StorageServices.php.
References ILIAS\KeyValueStorage\Internal\StorageServices\persistent(), and ILIAS\KeyValueStorage\Internal\StorageServices\store().
Referenced by ILIAS\KeyValueStorage\Internal\StorageServices\persistent().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\KeyValueStorage\Internal\StorageServices::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
Implements ILIAS\KeyValueStorage\Services.
Definition at line 65 of file StorageServices.php.
References ILIAS\KeyValueStorage\Internal\StorageServices\store(), ILIAS\KeyValueStorage\Subject\SubjectResolver\subject(), and ILIAS\KeyValueStorage\Internal\StorageServices\subjectScope().
Here is the call graph for this function:| ILIAS\KeyValueStorage\Internal\StorageServices::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
Implements ILIAS\KeyValueStorage\Services.
Definition at line 80 of file StorageServices.php.
References ILIAS\KeyValueStorage\Internal\KeyRules\SEPARATOR, and ILIAS\KeyValueStorage\Internal\StorageServices\subjectScope().
Here is the call graph for this function:| ILIAS\KeyValueStorage\Internal\StorageServices::session | ( | array | $namespace | ) |
Storage bound to the current user session.
| list<string> | $namespace namespace segments; joined with "." internally |
Implements ILIAS\KeyValueStorage\Services.
Definition at line 55 of file StorageServices.php.
References ILIAS\KeyValueStorage\Internal\StorageServices\session(), and ILIAS\KeyValueStorage\Internal\StorageServices\store().
Referenced by ILIAS\KeyValueStorage\Internal\StorageServices\session().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 99 of file StorageServices.php.
References ILIAS\KeyValueStorage\Internal\KeyRules\SEPARATOR, and ILIAS\KeyValueStorage\Internal\StorageNamespace\value().
Referenced by ILIAS\KeyValueStorage\Internal\StorageServices\persistent(), ILIAS\KeyValueStorage\Internal\StorageServices\persistentFor(), and ILIAS\KeyValueStorage\Internal\StorageServices\session().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 94 of file StorageServices.php.
References ILIAS\KeyValueStorage\Subject\SubjectId\id(), ILIAS\KeyValueStorage\Subject\SubjectId\provider(), and ILIAS\KeyValueStorage\Internal\KeyRules\SEPARATOR.
Referenced by ILIAS\KeyValueStorage\Internal\StorageServices\persistentFor(), and ILIAS\KeyValueStorage\Internal\StorageServices\purgeSubject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 37 of file StorageServices.php.
|
private |
Definition at line 42 of file StorageServices.php.
|
private |
Definition at line 39 of file StorageServices.php.