3require_once(
'class.ilCachedComponentData.php');
 
    5define (
"IL_COMP_MODULE", 
"Modules");
 
    6define (
"IL_COMP_SERVICE", 
"Services");
 
    7define (
"IL_COMP_PLUGIN", 
"Plugins");
 
    8define (
"IL_COMP_SLOTS", 
"Slots");
 
   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])
 
static isVersionGreaterString($a_ver1, $a_ver2)
static checkVersionNumber($a_ver)
Check version number.
getPluginSlots()
Get Plugin Slots.
setPluginSlots($a_pluginslots)
Set Plugin Slots.
setSubDirectory($a_subdirectory)
Set Sub Directory.
getPluginSlotDirectory($a_id)
Get directory of plugin slot.
static getComponentInfo($a_type, $a_name)
static isVersionGreater($a_ver1, $a_ver2)
Check whether version number is greater than another version number.
static lookupId($a_type, $a_name)
Lookup ID of a component.
static getComponentType()
static getComponentObject($a_ctype, $a_cname)
Get component object.
getVersion()
Get Version Number of Component.
static lookupPluginSlots($a_type, $a_name)
Lookup all plugin slots of a component.
getPluginSlotName($a_id)
Get name of plugin slot.
getSubDirectory()
Get Sub Directory.
getPluginSlotLanguagePrefix($a_id)
Get language prefix for plugin slot.