4 require_once
'Services/Mail/classes/class.ilMailTemplate.php';
29 $res = $ilDB->query(
'SELECT * FROM mail_man_tpl');
30 while(
$row = $ilDB->fetchAssoc(
$res))
42 foreach($this->mail_templates as $objMailTpl)
45 'tpl_id' => $objMailTpl->getTplId(),
46 'title' => $objMailTpl->getTitle(),
47 'context' => $objMailTpl->getContext(),
48 'lang' => $objMailTpl->getLang()
61 return $this->mail_templates[$tpl_id];
70 return array_filter($this->mail_templates,
function(
ilMailTemplate $template) use ($context_id) {
71 return $context_id === $template->
getContext();
82 if(count($tpl_ids) > 0)
85 DELETE FROM mail_man_tpl WHERE ' .
86 $ilDB->in(
'tpl_id', $tpl_ids,
false,
'integer')
Class ilMailTemplateDataProvider.
getTemplateByContexId($context_id)
Create styles array
The data for the language used.
deleteTemplates($tpl_ids=array())