24include_once(
"./setup/classes/class.ilObjDefReader.php");
 
   39        parent::__construct($a_path, $a_name, 
$a_type);
 
   49        xml_set_object($a_xml_parser, $this);
 
   50        xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
 
   51        xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
 
   63        parent::clearTables();
 
   65        $ilDB->manipulate(
"DELETE FROM module_class");
 
   85                $this->current_component = $this->type . 
"/" . 
$this->name;
 
   87                    "INSERT INTO il_component (type, name, id) " .
 
   89                    array(
"text", 
"text", 
"text"),
 
   90                    array($this->type, $this->name, $a_attribs[
"id"])
 
   98                    "INSERT INTO module_class (module, class, dir) " .
 
  100                    array(
"text", 
"text", 
"text"),
 
  101                    array($this->name, $a_attribs[
"name"], $a_attribs[
"dir"])
 
  108        parent::handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
 
  120        parent::handlerEndTag($a_xml_parser, $a_name);
 
  133        parent::handlerCharacterData($a_xml_parser, $a_data);
 
  136        $a_data = preg_replace(
"/\n/", 
"", $a_data);
 
  137        $a_data = preg_replace(
"/\t+/", 
"", $a_data);
 
  139        if (!empty($a_data)) {
 
  140            switch ($this->current_tag) {
 
An exception for terminatinating execution or to throw for unit testing.
handlerEndTag($a_xml_parser, $a_name)
end tag handler
setHandlers($a_xml_parser)
set event handler should be overwritten by inherited class @access private
__construct($a_path, $a_name, $a_type)
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
start tag handler
clearTables()
clear the tables
handlerCharacterData($a_xml_parser, $a_data)
end tag handler
Component definition reader (reads common tags in module.xml and service.xml files) Name is misleadin...
setComponentId($a_component_id)
Set from module or service reader.
startParsing()
stores xml data in array