ILIAS  release_8 Revision v8.24
class.ilMailMimeSenderUserById.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28 protected static array $userInstances = [];
29
30 public function __construct(ilSetting $settings, int $usrId)
31 {
32 if (!array_key_exists($usrId, self::$userInstances)) {
33 self::$userInstances[$usrId] = new ilObjUser($usrId);
34 }
35
36 parent::__construct($settings, self::$userInstances[$usrId]);
37 }
38
39 public static function addUserToCache(int $usrId, ilObjUser $user): void
40 {
41 self::$userInstances[$usrId] = $user;
42 }
43}
Class ilMailMimeSenderUserById.
static addUserToCache(int $usrId, ilObjUser $user)
__construct(ilSetting $settings, int $usrId)
Class ilMailMimeSenderSystem.
User class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc