ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider Class Reference

Names the fully authenticated ILIAS users as KeyValueStorage subjects; the subject id is the user id. More...

+ Inheritance diagram for ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider:
+ Collaboration diagram for ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider:

Public Member Functions

 name ()
 Unique among all providers, a lowercase identifier, e.g. More...
 
 subjectFor (int $user_id)
 
 name ()
 Unique among all providers, a lowercase identifier, e.g. More...
 

Data Fields

const string NAME = 'authentication'
 
- Data Fields inherited from ILIAS\KeyValueStorage\Subject\SubjectProvider
const int MAX_NAME_LENGTH = 64
 

Detailed Description

Names the fully authenticated ILIAS users as KeyValueStorage subjects; the subject id is the user id.

This names a subject. It does not discover who is logged in; that answer is {

See also
\ILIAS\Authentication\Domain\AuthenticatedUserid()}.

Definition at line 33 of file AuthenticatedUserSubjectProvider.php.

Member Function Documentation

◆ name()

ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider::name ( )

Unique among all providers, a lowercase identifier, e.g.

"authentication".

Implements ILIAS\KeyValueStorage\Subject\SubjectProvider.

Definition at line 37 of file AuthenticatedUserSubjectProvider.php.

References ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider\NAME.

◆ subjectFor()

ILIAS\Authentication\KeyValueStorage\AuthenticatedUserSubjectProvider::subjectFor ( int  $user_id)

Definition at line 42 of file AuthenticatedUserSubjectProvider.php.

42 : SubjectId
43 {
44 if ($user_id <= 0) {
45 throw new \InvalidArgumentException('User ID must be positive, got ' . $user_id . '.');
46 }
47
48 return new SubjectId($this, (string) $user_id);
49 }

References $user_id.

Field Documentation

◆ NAME


The documentation for this class was generated from the following file: