24 include_once(
"./setup/classes/class.ilObjDefReader.php");
40 parent::__construct($a_path, $a_name,
$a_type);
50 xml_set_object($a_xml_parser,$this);
51 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
52 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
64 parent::clearTables();
66 $ilDB->manipulate(
"DELETE FROM module_class");
86 $this->current_module = $this->name;
87 $this->current_component = $this->type.
"/".$this->name;
88 $ilDB->manipulateF(
"INSERT INTO il_component (type, name, id) ".
89 "VALUES (%s,%s,%s)",
array(
"text",
"text",
"text"),
90 array($this->type, $this->name, $a_attribs[
"id"]));
96 $ilDB->manipulateF(
"INSERT INTO module_class (module, class, dir) ".
97 "VALUES (%s,%s,%s)",
array(
"text",
"text",
"text"),
98 array($this->name, $a_attribs[
"name"], $a_attribs[
"dir"]));
104 parent::handlerBeginTag($a_xml_parser,$a_name,$a_attribs);
116 parent::handlerEndTag($a_xml_parser,$a_name);
129 parent::handlerCharacterData($a_xml_parser,$a_data);
132 $a_data = preg_replace(
"/\n/",
"",$a_data);
133 $a_data = preg_replace(
"/\t+/",
"",$a_data);
137 switch ($this->current_tag)
setComponentId($a_component_id)
Set from module or service reader.
startParsing()
stores xml data in array
setHandlers($a_xml_parser)
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
start tag handler
handlerCharacterData($a_xml_parser, $a_data)
end tag handler
__construct($a_path, $a_name, $a_type)
Create styles array
The data for the language used.
handlerEndTag($a_xml_parser, $a_name)
end tag handler
Component definition reader (reads common tags in module.xml and service.xml files) Name is misleadin...
clearTables()
clear the tables