ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 $contextId,
28  string $title,
29  string $subject,
30  string $message,
31  string $language
32  ): ilMailTemplate;
33 
37  public function modifyExistingTemplate(
38  int $templateId,
39  string $contextId,
40  string $title,
41  string $subject,
42  string $message,
43  string $language
44  ): void;
45 
46  public function loadTemplateForId(int $templateId): ilMailTemplate;
47 
51  public function loadTemplatesForContextId(string $contextId): array;
52 
56  public function deleteTemplatesByIds(array $templateIds): 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)
deleteTemplatesByIds(array $templateIds)
Class ilMailTemplate.
modifyExistingTemplate(int $templateId, string $contextId, string $title, string $subject, string $message, string $language)
loadTemplateForId(int $templateId)
setAsContextDefault(ilMailTemplate $template)
$message
Definition: xapiexit.php:31
createNewTemplate(string $contextId, string $title, string $subject, string $message, string $language)
loadTemplatesForContextId(string $contextId)