24 include_once(
"./classes/class.ilSaxParser.php");
42 die(
"Deprecated. Plugin information is stored in plugin.php");
44 $this->ctype = $a_ctype;
45 $this->cname = $a_cname;
46 $this->slot_id = $a_slot_id;
47 $this->pname = $a_pname;
57 xml_set_object($a_xml_parser,$this);
58 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
59 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
79 $q =
"SELECT * FROM il_plugin WHERE ".
80 " component_type = ".$ilDB->quote($this->ctype).
81 " AND component_name = ".$ilDB->quote($this->cname).
82 " AND slot_id = ".$ilDB->quote($this->slot_id).
83 " AND name = ".$ilDB->quote($this->pname);
84 $set = $ilDB->query($q);
85 if ($set->numRows() == 0)
87 $q =
"REPLACE INTO il_plugin (component_type,component_name,slot_id,".
88 "name, id, last_update_version, current_version, ilias_min_version,".
89 " ilias_max_version, active) VALUES ".
90 "(".$ilDB->quote($this->ctype).
",".
91 $ilDB->quote($this->cname).
",".
92 $ilDB->quote($this->slot_id).
",".
93 $ilDB->quote($this->pname).
",".
94 $ilDB->quote($a_attribs[
"id"]).
",".
95 $ilDB->quote(
"0.0.0").
",".
96 $ilDB->quote($a_attribs[
"version"]).
",".
97 $ilDB->quote($a_attribs[
"ilias_min_version"]).
",".
98 $ilDB->quote($a_attribs[
"ilias_max_version"]).
",".
104 $q =
"UPDATE il_plugin SET ".
105 " id = ".$ilDB->quote($a_attribs[
"id"]).
",".
106 " current_version = ".$ilDB->quote($a_attribs[
"version"]).
",".
107 " ilias_min_version = ".$ilDB->quote($a_attribs[
"ilias_min_version"]).
",".
108 " ilias_max_version = ".$ilDB->quote($a_attribs[
"ilias_max_version"]).
110 " component_type = ".$ilDB->quote($this->ctype).
111 " AND component_name = ".$ilDB->quote($this->cname).
112 " AND slot_id = ".$ilDB->quote($this->slot_id).
113 " AND name = ".$ilDB->quote($this->pname);
143 $a_data = preg_replace(
"/\n/",
"",$a_data);
144 $a_data = preg_replace(
"/\t+/",
"",$a_data);
148 switch ($this->current_tag)