5include_once 
'./Services/Xml/classes/class.ilSaxParser.php';
 
    6include_once 
'./Services/User/classes/class.ilObjUser.php';
 
   23                parent::__construct(
'',
true);
 
   34                return (array) $this->mails;
 
   59                xml_set_object($a_xml_parser,$this);
 
   60                xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
 
   61                xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
 
   76                                $this->mail = array();
 
   77                                $this->mail[
'usePlaceholders'] = $a_attribs[
'usePlaceholders'] ? true : 
false;
 
   78                                $this->mail[
'type'] = $a_attribs[
'type'] == 
'System' ? 
'system' : 
'normal';
 
   82                                $this->mail[
'to'] = $this->
parseName($a_attribs);
 
   86                                $this->mail[
'cc'] = $this->
parseName($a_attribs);
 
   90                                $this->mail[
'bcc'] = $this->
parseName($a_attribs);
 
   97                                $this->lines = array();
 
  101                                $this->attachment = array();
 
  102                                $this->attachment[
'name'] = $a_attribs[
'name'];
 
  119                                $this->mails[] = $this->mail;
 
  123                                $this->mail[
'subject'] = $this->cdata;
 
  127                                $this->mail[
'body'] = (array) $this->lines;
 
  131                                $this->lines[] = trim($this->cdata);
 
  135                                $this->attachment[
'content'] = base64_decode(trim($this->cdata));
 
  136                                $this->mail[
'attachments'][] = $this->attachment;
 
  151                if($this->in_metadata)
 
  153                        parent::handlerCharacterData($a_xml_parser,$a_data);
 
  159                        $a_data = preg_replace(
"/\t+/",
" ",$a_data);
 
  160                        $this->cdata .= $a_data;
 
  172                include_once 
'./Services/Object/classes/class.ilObjectFactory.php';
 
  174                if($a_attribs[
'obj_id'])
 
  176                        $il_id = explode(
'_',$a_attribs[
'obj_id']);
 
  177                        $GLOBALS[
'ilLog']->write(
'il ID:'.print_r($il_id,
true));
 
  180                                throw new InvalidArgumentException(
"Invalid user id given: obj_id => ".$a_attribs[
'obj_id']);
 
  182                        return $user->getLogin();
 
  186                        return $a_attribs[
'name'];
 
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
setThrowException($throwException)
set error handling
setXMLContent($a_xml_content)
startParsing()
stores xml data in array
XML parser for soap mails.
handlerEndTag($a_xml_parser, $a_name)
handler for end of element
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
__construct($a_xml)
Constructor.
setHandlers($a_xml_parser)
set event handlers
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
parseName($a_attribs)
extract user name
getMails()
Get parsed mails.