ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
interface.ilMailTemplateServiceInterface.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
23 
25 {
26  public function createNewTemplate(
27  string $context_id,
28  string $title,
29  string $subject,
30  string $message,
31  string $language
32  ): ilMailTemplate;
33 
37  public function modifyExistingTemplate(
38  int $template_id,
39  string $context_id,
40  string $title,
41  string $subject,
42  string $message,
43  string $language
44  ): void;
45 
46  public function loadTemplateForId(int $template_id): ilMailTemplate;
47 
51  public function loadTemplatesForContextId(string $context_id): array;
52 
56  public function deleteTemplatesByIds(array $template_ids): void;
57 
61  public function listAllTemplatesAsArray(): array;
62 
63  public function unsetAsContextDefault(ilMailTemplate $template): void;
64 
65  public function setAsContextDefault(ilMailTemplate $template): void;
66 }
unsetAsContextDefault(ilMailTemplate $template)
loadTemplateForId(int $template_id)
deleteTemplatesByIds(array $template_ids)
modifyExistingTemplate(int $template_id, string $context_id, string $title, string $subject, string $message, string $language)
setAsContextDefault(ilMailTemplate $template)
$message
Definition: xapiexit.php:31
loadTemplatesForContextId(string $context_id)
createNewTemplate(string $context_id, string $title, string $subject, string $message, string $language)