|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Isolates the keys of one consumer from every other consumer of a storage. More...
Inheritance diagram for ILIAS\KeyValueStorage\Internal\StorageNamespace:
Collaboration diagram for ILIAS\KeyValueStorage\Internal\StorageNamespace:Public Member Functions | |
| __construct (array $segments) | |
| value () | |
| __toString () | |
Data Fields | |
| const int | MAX_LENGTH = 128 |
Private Attributes | |
| const string | SEPARATOR = '.' |
| const string | FORBIDDEN_PATTERN = '/[\x00-\x1F\x7F' . self::SEPARATOR . KeyRules::SEPARATOR . ']/' |
| Characters that must not appear inside a segment: the segment separator, {. More... | |
| string | $value |
Isolates the keys of one consumer from every other consumer of a storage.
Built from namespace segments so consumers of {
Segments are otherwise permissive: the only characters rejected are those that would break composition — the segment separator, the namespace/key separator used by repositories, and control characters.
Definition at line 36 of file StorageNamespace.php.
| ILIAS\KeyValueStorage\Internal\StorageNamespace::__construct | ( | array | $segments | ) |
| list<string> | $segments |
Definition at line 53 of file StorageNamespace.php.
References ILIAS\KeyValueStorage\Internal\StorageNamespace\$value, ILIAS\KeyValueStorage\Internal\KeyRules\SEPARATOR, and ILIAS\KeyValueStorage\Internal\StorageNamespace\value().
Here is the call graph for this function:| ILIAS\KeyValueStorage\Internal\StorageNamespace::__toString | ( | ) |
Definition at line 97 of file StorageNamespace.php.
References ILIAS\KeyValueStorage\Internal\StorageNamespace\$value.
| ILIAS\KeyValueStorage\Internal\StorageNamespace::value | ( | ) |
Definition at line 92 of file StorageNamespace.php.
References ILIAS\KeyValueStorage\Internal\StorageNamespace\$value.
Referenced by ILIAS\KeyValueStorage\Internal\StorageNamespace\__construct(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\has(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\hasFor(), ILIAS\Authentication\KeyValueStorage\SessionRepository\namespacePrefix(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\read(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\readAll(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\readAllFor(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\readFor(), ILIAS\KeyValueStorage\Internal\DatabaseRepository\readRow(), ILIAS\KeyValueStorage\Internal\DatabaseRepository\readRows(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\remove(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\removeAll(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\removeAllFor(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\removeFor(), ILIAS\KeyValueStorage\Internal\DatabaseRepository\removeRow(), ILIAS\KeyValueStorage\Internal\DatabaseRepository\removeRows(), ILIAS\KeyValueStorage\Internal\StorageServices\store(), ILIAS\Tests\KeyValueStorage\InMemoryRepository\write(), ILIAS\Tests\KeyValueStorage\InMemorySubjectRepository\writeFor(), and ILIAS\KeyValueStorage\Internal\DatabaseRepository\writeRow().
Here is the caller graph for this function:
|
private |
Definition at line 48 of file StorageNamespace.php.
Referenced by ILIAS\KeyValueStorage\Internal\StorageNamespace\__construct(), ILIAS\KeyValueStorage\Internal\StorageNamespace\__toString(), and ILIAS\KeyValueStorage\Internal\StorageNamespace\value().
|
private |
Characters that must not appear inside a segment: the segment separator, {.
Definition at line 46 of file StorageNamespace.php.
| const int ILIAS\KeyValueStorage\Internal\StorageNamespace::MAX_LENGTH = 128 |
Definition at line 38 of file StorageNamespace.php.
Referenced by ILIAS\Tests\KeyValueStorage\Internal\StorageNamespaceTest\invalidNamespaces(), ILIAS\Tests\KeyValueStorage\Setup\DBUpdateStepsTest\testTheColumnsAreWideEnoughForWhatTheValidationAllows(), ILIAS\Tests\KeyValueStorage\Internal\DatabaseRepositoryTest\testWriteRejectsANamespaceLongerThanTheColumn(), ILIAS\Tests\KeyValueStorage\Internal\StorageNamespaceTest\validNamespaces(), and ILIAS\KeyValueStorage\Internal\DatabaseRepository\writeRow().
|
private |
Definition at line 40 of file StorageNamespace.php.