83        return $this->
repository->findById($templateId);
 
   92        return $this->
repository->findByContextId($contextId);
 
  133        foreach ($allOfContext as $otherTemplate) {
 
  134            $otherTemplate->setAsDefault(
false);
 
  136            if ((
int) 
$template->getTplId() === (
int) $otherTemplate->getTplId()) {
 
  137                $otherTemplate->setAsDefault(
true);
 
An exception for terminatinating execution or to throw for unit testing.
Class ilMailTemplateRepository.
Class ilMailTemplateService.
listAllTemplatesAsArray()
__construct(\ilMailTemplateRepository $repository)
ilMailTemplateService constructor.
unsetAsContextDefault(\ilMailTemplate $template)
loadTemplateForId(int $templateId)
setAsContextDefault(\ilMailTemplate $template)
modifyExistingTemplate(int $templateId, string $contextId, string $title, string $subject, string $message, string $language)
loadTemplatesForContextId(string $contextId)
deleteTemplatesByIds(array $templateIds)
createNewTemplate(string $contextId, string $title, string $subject, string $message, string $language)
catch(Exception $e) $message