21 xml_set_object($a_xml_parser,$this);
22 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
23 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
34 $this->table = $a_attribs[
'name'];
38 $this->values = array();
39 $this->num_values = -1;
45 $this->values[$this->num_values][
'name'] = $a_attribs[
'name'];
46 $this->values[$this->num_values][
'type'] = $a_attribs[
'type'];
66 foreach($this->values as $key =>
$data)
68 $val[
$data[
'name']] = array($data[
'type'],$data[
'val']);
70 $ilDB->insert($this->table,$val);
81 if($this->cdata != null)
83 $this->cdata .= $a_data;
87 $this->cdata = $a_data;
setHandlers($a_xml_parser)
set event handler should be overwritten by inherited class private
handlerCharacterData($a_xml_parser, $a_data)
handlerEndTag($a_xml_parser, $a_name)
handler for begin of element
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
while($lm_rec=$ilDB->fetchAssoc($lm_set)) $data
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element