24 include_once(
"./setup/classes/class.ilObjDefReader.php");
40 parent::__construct($a_path, $a_name,
$a_type);
51 xml_set_object($a_xml_parser,$this);
52 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
53 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
64 $ilDB->manipulate(
"DELETE FROM service_class");
84 $this->current_service = $this->name;
85 $this->current_component = $this->type.
"/".$this->name;
86 $ilDB->manipulateF(
"INSERT INTO il_component (type, name, id) ".
87 "VALUES (%s,%s,%s)",
array(
"text",
"text",
"text"),
88 array($this->type, $this->name, $a_attribs[
"id"]));
94 $ilDB->manipulateF(
"INSERT INTO service_class (service, class, dir) ".
95 "VALUES (%s,%s,%s)",
array(
"text",
"text",
"text"),
96 array($this->name, $a_attribs[
"name"], $a_attribs[
"dir"]));
102 parent::handlerBeginTag($a_xml_parser,$a_name,$a_attribs);
114 parent::handlerEndTag($a_xml_parser,$a_name);
127 parent::handlerCharacterData($a_xml_parser,$a_data);
130 $a_data = preg_replace(
"/\n/",
"",$a_data);
131 $a_data = preg_replace(
"/\t+/",
"",$a_data);
135 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