34 include_once
'Services/MetaData/classes/class.ilMDSaxParser.php';
35 include_once
'Services/MetaData/classes/class.ilMD.php';
41 public function __construct($content, $a_rbac_id, $a_obj_id, $a_obj_type)
45 parent::__construct();
53 xml_set_object($a_xml_parser, $this);
54 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
55 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
61 parent::handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
68 $this->in_meta_data =
true;
69 parent::handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
74 $this->md_ide = &$par->addIdentifier();
75 $this->md_ide->setCatalog($a_attribs[
'Catalog']);
76 $this->md_ide->setEntry(
'il__' . $this->md->getObjType() .
'_' . $this->md->getObjId());
77 $this->md_ide->save();
86 parent::handlerEndTag($a_xml_parser, $a_name);
98 $this->in_meta_data =
false;
99 parent::handlerEndTag($a_xml_parser, $a_name);
107 if ($this->in_meta_data) {
108 parent::handlerCharacterData($a_xml_parser, $a_data);
119 $this->filter[] =
'Identifier';
128 return in_array($a_tag_name, $this->filter);
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handlerEndTag($a_xml_parser, $a_name)
handlerCharacterData($a_xml_parser, $a_data)
__construct($content, $a_rbac_id, $a_obj_id, $a_obj_type)
setXMLContent($a_xml_content)
setHandlers($a_xml_parser)