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();
64 $this->
setId($this->global_cache->lookCompId($this->getComponentType(), $this->
getName()));
109 $this->pluginslots = $a_pluginslots;
119 return $this->pluginslots;
132 $set = $ilDB->queryF(
"SELECT * FROM il_component WHERE type = %s ".
133 " AND name = %s",
array(
"text",
"text"),
134 array($a_ctype, $a_cname));
135 if (!$ilDB->fetchAssoc($set))
143 if (is_file(
"./Modules/".$a_cname.
"/classes/class.il".$a_cname.
"Module.php"))
145 include_once(
"./Modules/".$a_cname.
"/classes/class.il".$a_cname.
"Module.php");
146 $class =
"il".$a_cname.
"Module";
147 $comp =
new $class();
153 if (is_file(
"./Services/".$a_cname.
"/classes/class.il".$a_cname.
"Service.php"))
155 include_once(
"./Services/".$a_cname.
"/classes/class.il".$a_cname.
"Service.php");
156 $class =
"il".$a_cname.
"Service";
157 $comp =
new $class();
183 return $this->subdirectory;
194 $recs = $cached_component->lookupPluginSlotByComponent(
$a_type.
"/".$a_name);
201 foreach($recs as $rec)
203 $rec[
"dir"] =
"Customizing/global/plugins/".$a_type.
"/".$a_name.
"/".$rec[
"name"];
204 $rec[
"dir_pres"] =
"Customizing/global/plugins/<br />".$a_type.
"/".$a_name.
"/".$rec[
"name"];
206 $ps[$rec[
"id"]] = $rec;
220 return $slots[$a_id][
"name"];
232 return "Customizing/global/plugins/".$this->getComponentType().
"/".
233 $this->
getName().
"/".$slots[$a_id][
"name"];
244 return $this->
getId().
"_".$slots[$a_id][
"id"].
"_";
285 $parts = explode(
".", $a_ver);
287 if (count($parts) != 3)
289 return "Version Number does not conform to format a.b.c";
292 if (!is_numeric($parts[0]) || !is_numeric($parts[1]) || !is_numeric($parts[2]))
294 return "Not all version number parts a.b.c are numeric.";
304 if (is_array($a_arr1) && is_array($a_arr2))
324 if ($a_ver1[0] > $a_ver2[0])
328 else if ($a_ver1[0] < $a_ver2[0])
332 else if ($a_ver1[1] > $a_ver2[1])
336 else if ($a_ver1[1] < $a_ver2[1])
340 else if ($a_ver1[2] > $a_ver2[2])
358 $query =
'SELECT name from il_component '.
359 'WHERE id = '.$ilDB->quote($a_component_id,
'text');
static getComponentObject($a_ctype, $a_cname)
Get component object.
getVersion()
Get Version Number of Component.
getPluginSlots()
Get Plugin Slots.
static lookupId($a_type, $a_name)
Lookup ID of a component.
setPluginSlots($a_pluginslots)
Set Plugin Slots.
static isVersionGreaterString($a_ver1, $a_ver2)
getSubDirectory()
Get Sub Directory.
static getComponentType()
setSubDirectory($a_subdirectory)
Set Sub Directory.
static lookupComponentName($a_component_id)
lookup component name type $ilDB
static checkVersionNumber($a_ver)
Check version number.
getPluginSlotLanguagePrefix($a_id)
Get language prefix for plugin slot.
getPluginSlotDirectory($a_id)
Get directory of plugin slot.
static isVersionGreater($a_ver1, $a_ver2)
Check whether version number is greater than another version number.
Create styles array
The data for the language used.
getPluginSlotName($a_id)
Get name of plugin slot.
static lookupPluginSlots($a_type, $a_name)
Lookup all plugin slots of a component.
static getComponentInfo($a_type, $a_name)