66 public function handlerBeginTag($a_xml_parser,
string $a_name, array $a_attribs): void
70 $this->mail = array();
71 $this->mail[
'usePlaceholders'] = (bool) $a_attribs[
'usePlaceholders'];
72 $this->mail[
'type'] = $a_attribs[
'type'] ===
'System' ?
'system' :
'normal';
76 $this->mail[
'to'] = $this->
parseName($a_attribs);
80 $this->mail[
'cc'] = $this->
parseName($a_attribs);
84 $this->mail[
'bcc'] = $this->
parseName($a_attribs);
91 $this->lines = array();
96 $this->
attachment[
'name'] = $a_attribs[
'name'];
122 $this->lines[] = trim($this->cdata);
126 $this->
attachment[
'content'] = base64_decode(trim($this->cdata));
141 if ($a_data !==
"\n") {
143 $a_data = preg_replace(
"/\t+/",
" ", $a_data);
144 $this->cdata .= $a_data;
150 if ($a_attribs[
'obj_id']) {
151 $il_id = explode(
'_', $a_attribs[
'obj_id']);
155 return $user->getLogin();
157 return (
string) ($a_attribs[
'name'] ??
'');
setThrowException(bool $throw_exception)
attachment()
description: > Example for rendring a attachment glyph.
handlerCharacterData($a_xml_parser, string $a_data)
startParsing()
stores xml data in array
handlerEndTag($a_xml_parser, string $a_name)
Handler for end of element.
parseName(array $a_attribs)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $a_xml)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
__construct(Container $dic, ilPlugin $plugin)
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
handler for begin of element
setHandlers($a_xml_parser)
Set event handlers.
setXMLContent(string $a_xml_content)