3 require_once(
'class.ilCachedComponentData.php');
5 define (
"IL_COMP_MODULE",
"Modules");
6 define (
"IL_COMP_SERVICE",
"Services");
7 define (
"IL_COMP_PLUGIN",
"Plugins");
8 define (
"IL_COMP_SLOTS",
"Slots");
42 abstract function isCore();
65 $this->
setId($rec[
"id"]);
110 $this->pluginslots = $a_pluginslots;
120 return $this->pluginslots;
133 $set = $ilDB->queryF(
"SELECT * FROM il_component WHERE type = %s ".
134 " AND name = %s", array(
"text",
"text"),
135 array($a_ctype, $a_cname));
136 if (!$ilDB->fetchAssoc($set))
144 if (is_file(
"./Modules/".$a_cname.
"/classes/class.il".$a_cname.
"Module.php"))
146 include_once(
"./Modules/".$a_cname.
"/classes/class.il".$a_cname.
"Module.php");
147 $class =
"il".$a_cname.
"Module";
148 $comp =
new $class();
154 if (is_file(
"./Services/".$a_cname.
"/classes/class.il".$a_cname.
"Service.php"))
156 include_once(
"./Services/".$a_cname.
"/classes/class.il".$a_cname.
"Service.php");
157 $class =
"il".$a_cname.
"Service";
158 $comp =
new $class();
174 $this->subdirectory = $a_subdirectory;
184 return $this->subdirectory;
195 $recs = $cached_component->lookupPluginSlotByComponent($a_type.
"/".$a_name);
202 foreach($recs as $rec)
204 $rec[
"dir"] =
"Customizing/global/plugins/".$a_type.
"/".$a_name.
"/".$rec[
"name"];
205 $rec[
"dir_pres"] =
"Customizing/global/plugins/<br />".$a_type.
"/".$a_name.
"/".$rec[
"name"];
207 $ps[$rec[
"id"]] = $rec;
221 return $slots[$a_id][
"name"];
233 return "Customizing/global/plugins/".$this->getComponentType().
"/".
234 $this->
getName().
"/".$slots[$a_id][
"name"];
245 return $this->
getId().
"_".$slots[$a_id][
"id"].
"_";
287 $parts = explode(
".", $a_ver);
289 if (count($parts) != 3)
291 return "Version Number does not conform to format a.b.c";
294 if (!is_numeric($parts[0]) || !is_numeric($parts[1]) || !is_numeric($parts[2]))
296 return "Not all version number parts a.b.c are numeric.";
306 if (is_array($a_arr1) && is_array($a_arr2))
326 if ($a_ver1[0] > $a_ver2[0])
330 else if ($a_ver1[0] < $a_ver2[0])
334 else if ($a_ver1[1] > $a_ver2[1])
338 else if ($a_ver1[1] < $a_ver2[1])
342 else if ($a_ver1[2] > $a_ver2[2])