19 declare(strict_types=1);
    31         $this->db = $db ?? $DIC->database();
    41         $res = $this->db->query(
'SELECT * FROM mail_man_tpl');
    42         while ($row = $this->db->fetchAssoc(
$res)) {
    44             $templates[] = $template;
    52         $res = $this->db->queryF(
    53             'SELECT * FROM mail_man_tpl WHERE tpl_id  = %s',
    58         if (1 === $this->db->numRows(
$res)) {
    59             $row = $this->db->fetchAssoc(
$res);
    71         return array_filter($this->
getAll(), 
static function (
ilMailTemplate $template) use ($contextId): 
bool {
    81         if ($templateIds !== []) {
    82             $this->db->manipulate(
   106             $nextId = $this->db->nextId(
'mail_man_tpl');
   107             $this->db->insert(
'mail_man_tpl', [
 
__construct(ilDBInterface $db=null)
 
store(ilMailTemplate $template)
 
findByContextId(string $contextId)
 
deleteByIds(array $templateIds)
 
setTplId(int $templateId)
 
findById(int $templateId)