24 include_once(
"./setup/classes/class.ilObjDefReader.php");
39 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');
63 $ilDB->manipulate(
"DELETE FROM service_class");
83 $this->current_component = $this->type .
"/" .
$this->name;
85 "INSERT INTO il_component (type, name, id) " .
87 array(
"text",
"text",
"text"),
88 array($this->type, $this->name, $a_attribs[
"id"])
96 "INSERT INTO service_class (service, class, dir) " .
98 array(
"text",
"text",
"text"),
99 array($this->name, $a_attribs[
"name"], $a_attribs[
"dir"])
106 parent::handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
118 parent::handlerEndTag($a_xml_parser, $a_name);
131 parent::handlerCharacterData($a_xml_parser, $a_data);
134 $a_data = preg_replace(
"/\n/",
"", $a_data);
135 $a_data = preg_replace(
"/\t+/",
"", $a_data);
137 if (!empty($a_data)) {
138 switch ($this->current_tag) {
setComponentId($a_component_id)
Set from module or service reader.
handlerCharacterData($a_xml_parser, $a_data)
end tag handler
startParsing()
stores xml data in array
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
start tag handler
Create styles array
The data for the language used.
setHandlers($a_xml_parser)
Component definition reader (reads common tags in module.xml and service.xml files) Name is misleadin...
__construct($a_path, $a_name, $a_type)
clearTables()
clear the tables
handlerEndTag($a_xml_parser, $a_name)
end tag handler