19 declare(strict_types=1);
28 $this->db = $db ?? $DIC->database();
38 $res = $this->db->query(
'SELECT * FROM mail_man_tpl');
39 while ($row = $this->db->fetchAssoc(
$res)) {
41 $templates[] = $template;
49 $res = $this->db->queryF(
50 'SELECT * FROM mail_man_tpl WHERE tpl_id = %s',
55 if ($this->db->numRows(
$res) === 1) {
56 $row = $this->db->fetchAssoc(
$res);
81 if ($template_ids !== []) {
82 $this->db->manipulate(
106 $next_id = $this->db->nextId(
'mail_man_tpl');
107 $this->db->insert(
'mail_man_tpl', [
setTplId(int $template_id)
findById(int $template_id)
store(ilMailTemplate $template)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
findByContextId(string $context_id)
__construct(?ilDBInterface $db=null)
deleteByIds(array $template_ids)