34 include_once
'Services/MetaData/classes/class.ilMDSaxParser.php';
35 include_once
'Services/MetaData/classes/class.ilMD.php';
41 function __construct($content,$a_rbac_id,$a_obj_id,$a_obj_type)
46 parent::__construct();
55 xml_set_object($a_xml_parser,$this);
56 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
57 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
64 parent::handlerBeginTag($a_xml_parser,$a_name,$a_attribs);
72 $this->in_meta_data =
true;
73 parent::handlerBeginTag($a_xml_parser,$a_name,$a_attribs);
78 $this->md_ide =& $par->addIdentifier();
79 $this->md_ide->setCatalog($a_attribs[
'Catalog']);
80 $this->md_ide->setEntry(
'il__'.$this->md->getObjType().
'_'.$this->md->getObjId());
81 $this->md_ide->save();
91 parent::handlerEndTag($a_xml_parser,$a_name);
104 $this->in_meta_data =
false;
105 parent::handlerEndTag($a_xml_parser,$a_name);
113 if($this->in_meta_data)
115 parent::handlerCharacterData($a_xml_parser,$a_data);
126 $this->filter[] =
'Identifier';
135 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)
Create styles array
The data for the language used.
__construct($content, $a_rbac_id, $a_obj_id, $a_obj_type)
setXMLContent($a_xml_content)
setHandlers($a_xml_parser)