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

Purges the KeyValueStorage data of a user, see {. More...

+ Collaboration diagram for ILIAS\Authentication\KeyValueStorage\AuthenticatedSubjectPurge:

Public Member Functions

 __construct (private Services $storage, private AuthenticatedUserSubjectProvider $provider)
 
 purgeForUserId (int $user_id)
 

Detailed Description

Purges the KeyValueStorage data of a user, see {.

See also
AuthenticatedUserSubjectProvider}.

Definition at line 28 of file AuthenticatedSubjectPurge.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Authentication\KeyValueStorage\AuthenticatedSubjectPurge::__construct ( private Services  $storage,
private AuthenticatedUserSubjectProvider  $provider 
)

Definition at line 30 of file AuthenticatedSubjectPurge.php.

33 {
34 }

Member Function Documentation

◆ purgeForUserId()

ILIAS\Authentication\KeyValueStorage\AuthenticatedSubjectPurge::purgeForUserId ( int  $user_id)

Definition at line 36 of file AuthenticatedSubjectPurge.php.

36 : void
37 {
38 if ($user_id <= 0) {
39 return;
40 }
41
42 $this->storage->purgeSubject($this->provider->subjectFor($user_id));
43 }

References $user_id.


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