ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilMailMimeSenderUserById Class Reference
+ Inheritance diagram for ilMailMimeSenderUserById:
+ Collaboration diagram for ilMailMimeSenderUserById:

Public Member Functions

 __construct (ilSetting $settings, int $usr_id, TemplateEngineFactoryInterface $template_engine_factory)
 
- Public Member Functions inherited from ilMailMimeSenderUser
 __construct (protected ilSetting $settings, protected ilObjUser $user, protected TemplateEngineFactoryInterface $template_engine_factory)
 
 hasReplyToAddress ()
 
 getReplyToAddress ()
 
 getReplyToName ()
 
 hasEnvelopFromAddress ()
 
 getEnvelopFromAddress ()
 
 getFromAddress ()
 
 getFromName ()
 
 hasReplyToAddress ()
 
 getReplyToAddress ()
 
 getReplyToName ()
 
 hasEnvelopFromAddress ()
 
 getEnvelopFromAddress ()
 
 getFromAddress ()
 
 getFromName ()
 

Static Public Member Functions

static addUserToCache (int $usr_id, ilObjUser $user)
 

Static Protected Attributes

static array $user_instances = []
 

Detailed Description

Definition at line 23 of file class.ilMailMimeSenderUserById.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailMimeSenderUserById::__construct ( ilSetting  $settings,
int  $usr_id,
TemplateEngineFactoryInterface  $template_engine_factory 
)

Definition at line 28 of file class.ilMailMimeSenderUserById.php.

29 {
30 if (!array_key_exists($usr_id, self::$user_instances)) {
31 self::$user_instances[$usr_id] = new ilObjUser($usr_id);
32 }
33
34 parent::__construct($settings, self::$user_instances[$usr_id], $template_engine_factory);
35 }
User class.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ addUserToCache()

static ilMailMimeSenderUserById::addUserToCache ( int  $usr_id,
ilObjUser  $user 
)
static

Definition at line 37 of file class.ilMailMimeSenderUserById.php.

37 : void
38 {
39 self::$user_instances[$usr_id] = $user;
40 }

Referenced by ilMailMimeTest\setUp(), and ilMailTest\testExternalMailDeliveryWorksAsExpected().

+ Here is the caller graph for this function:

Field Documentation

◆ $user_instances

array ilMailMimeSenderUserById::$user_instances = []
staticprotected

Definition at line 26 of file class.ilMailMimeSenderUserById.php.


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