5 include_once(
"./Services/Component/classes/class.ilPlugin.php");
44 $rec = $cached_component->lookupPluginSlotById($this->
getSlotId());
62 $this->componenttype = $a_componenttype;
72 return $this->componenttype;
82 $this->componentname = $a_componentname;
92 return $this->componentname;
102 $this->slotid = $a_slotid;
112 return $this->slotid;
122 $this->slotname = $a_slotname;
132 return $this->slotname;
140 return "./Customizing/global/plugins/".$this->getComponentType().
141 "/".$this->getComponentName().
"/".$this->
getSlotName();
149 return "./Customizing/global/plugins/".$a_ctype.
160 $a_plugin_name.
"/plugin.php";
182 $a_plugin_name.
"/classes/class.il".$a_plugin_name.
"Plugin.php";
204 if ($this->prefix ==
"")
211 return $this->prefix;
219 global $ilPluginAdmin;
224 if (!@is_dir($pl_dir))
229 $dir = opendir($pl_dir);
232 while(
$file = readdir($dir))
238 if (@is_dir($pl_dir.
"/".
$file) && substr(
$file, 0, 1) !=
"." &&
239 is_file($pl_dir.
"/".
$file.
"/plugin.php"))
255 $plugin[
"version"] = $pdata[
"version"];
256 $plugin[
"id"] = $pdata[
"id"];
257 $plugin[
"is_active"] = $pdata[
"is_active"];
258 $plugin[
"inactive_reason"] = $pdata[
"inactive_reason"];
259 $plugin[
"needs_update"] = $pdata[
"needs_update"];
260 $plugin[
"ilias_min_version"] = $pdata[
"ilias_min_version"];
261 $plugin[
"ilias_max_version"] = $pdata[
"ilias_max_version"];
262 $plugin[
"activation_possible"] = $pdata[
"activation_possible"];
263 $plugin[
"responsible"] = $pdata[
"responsible"];
264 $plugin[
"responsible_mail"] = $pdata[
"responsible_mail"];
266 $plugin[
"name"] =
$file;
269 $plugin[
"class_file"] =
"class.il".$plugin[
"name"].
"Plugin.php";
271 $plugins[] = $plugin;
285 $rec = $cached_component->lookupPluginSlotByName($a_slot_name);
305 $rec = $cached_component->lookupPluginSlotById($a_slot_id);
324 global $ilPluginAdmin;
337 $recs = $cached_component->getIlPluginslotById();
344 foreach($recs as $rec)
346 $pos = strpos($rec[
"component"],
"/");
348 "component_type" => substr($rec[
"component"], 0, $pos),
349 "component_name" => substr($rec[
"component"], $pos + 1),
350 "slot_id" => $rec[
"id"],
351 "slot_name" => $rec[
"name"]
__construct($a_c_type, $a_c_name, $a_slot_id)
Constructor.
getPluginsInformation()
Get information an all plugins and their status.
getPrefix()
Get slot prefix, used for lang vars and db tables.
getSlotName()
Get Slot Name.
static lookupId($a_type, $a_name)
Lookup ID of a component.
static lookupStoredData($a_ctype, $a_cname, $a_slot_id, $a_pname)
Lookup information data in il_plugin.
checkPluginPhpFileAvailability($a_plugin_name)
Check whether plugin.php file is available for plugin or not.
static lookupSlotName($a_ctype, $a_cname, $a_slot_id)
Lookup slot name for component and slot id.
setComponentName($a_componentname)
Set Component Name.
getPluginPhpFileName($a_plugin_name)
Get File name for plugin.php.
getActivePlugins()
Get active plugins of slot.
checkClassFileAvailability($a_plugin_name)
Check whether Plugin class file is available for plugin or not.
setSlotName($a_slotname)
Set Slot Name.
setSlotId($a_slotid)
Set Slot ID.
Create styles array
The data for the language used.
static _getPluginsDirectory($a_ctype, $a_cname, $a_slot_id)
Get plugins directory.
setComponentType($a_componenttype)
Set Component Type.
getComponentName()
Get Component Name.
read()
Read properties from DB.
static createPluginRecord($a_ctype, $a_cname, $a_slot_id, $a_pname)
getComponentType()
Get Component Type.
getPluginsDirectory()
Get directory of.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static lookupSlotId($a_ctype, $a_cname, $a_slot_name)
Lookup slot ID for component and slot name.
getPluginClassFileName($a_plugin_name)
Get Class File name for plugin.
static getAllSlots()
Get all plugin slots.