ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilMailTemplateService. More...
Public Member Functions | |
__construct (\ilMailTemplateRepository $repository) | |
ilMailTemplateService constructor. More... | |
createNewTemplate (string $contextId, string $title, string $subject, string $message, string $language) | |
modifyExistingTemplate (int $templateId, string $contextId, string $title, string $subject, string $message, string $language) | |
loadTemplateForId (int $templateId) | |
loadTemplatesForContextId (string $contextId) | |
deleteTemplatesByIds (array $templateIds) | |
listAllTemplatesAsArray () | |
unsetAsContextDefault (\ilMailTemplate $template) | |
setAsContextDefault (\ilMailTemplate $template) | |
Protected Attributes | |
$repository | |
Class ilMailTemplateService.
Definition at line 9 of file class.ilMailTemplateService.php.
ilMailTemplateService::__construct | ( | \ilMailTemplateRepository | $repository | ) |
ilMailTemplateService constructor.
ilMailTemplateRepository | $repository |
Definition at line 18 of file class.ilMailTemplateService.php.
References $repository, and repository().
ilMailTemplateService::createNewTemplate | ( | string | $contextId, |
string | $title, | ||
string | $subject, | ||
string | $message, | ||
string | $language | ||
) |
string | $contextId | |
string | $title | |
string | $subject | |
string | $message | |
string | $language |
Definition at line 31 of file class.ilMailTemplateService.php.
References $template, and repository().
ilMailTemplateService::deleteTemplatesByIds | ( | array | $templateIds | ) |
array | $templateIds |
Definition at line 98 of file class.ilMailTemplateService.php.
References repository().
ilMailTemplateService::listAllTemplatesAsArray | ( | ) |
Definition at line 106 of file class.ilMailTemplateService.php.
References $template, repository(), and ilMailTemplate\toArray().
ilMailTemplateService::loadTemplateForId | ( | int | $templateId | ) |
int | $templateId |
Definition at line 81 of file class.ilMailTemplateService.php.
References repository().
ilMailTemplateService::loadTemplatesForContextId | ( | string | $contextId | ) |
string | $contextId |
Definition at line 90 of file class.ilMailTemplateService.php.
References repository().
ilMailTemplateService::modifyExistingTemplate | ( | int | $templateId, |
string | $contextId, | ||
string | $title, | ||
string | $subject, | ||
string | $message, | ||
string | $language | ||
) |
int | $templateId | |
string | $contextId | |
string | $title | |
string | $subject | |
string | $message | |
string | $language |
Definition at line 58 of file class.ilMailTemplateService.php.
References $template, and repository().
ilMailTemplateService::setAsContextDefault | ( | \ilMailTemplate | $template | ) |
\ilMailTemplate | $template |
Definition at line 130 of file class.ilMailTemplateService.php.
References ilMailTemplate\getContext(), ilMailTemplate\getTplId(), and repository().
ilMailTemplateService::unsetAsContextDefault | ( | \ilMailTemplate | $template | ) |
\ilMailTemplate | $template |
Definition at line 120 of file class.ilMailTemplateService.php.
References repository(), and ilMailTemplate\setAsDefault().
|
protected |
Definition at line 12 of file class.ilMailTemplateService.php.
Referenced by __construct().