5 include_once(
"./Services/Component/classes/class.ilPlugin.php");
32 if ($a_slot_id !=
"") {
43 $rec = $cached_component->lookupPluginSlotById($this->
getSlotId());
54 $this->componenttype = $a_componenttype;
64 return $this->componenttype;
74 $this->componentname = $a_componentname;
84 return $this->componentname;
94 $this->slotid = $a_slotid;
104 return $this->slotid;
114 $this->slotname = $a_slotname;
124 return $this->slotname;
141 return "./Customizing/global/plugins/" . $a_ctype .
152 $a_plugin_name .
"/plugin.php";
173 $a_plugin_name .
"/classes/class.il" . $a_plugin_name .
"Plugin.php";
194 if ($this->prefix ==
"") {
213 if (!@is_dir($pl_dir)) {
217 $dir = opendir($pl_dir);
220 while ($file = readdir($dir)) {
244 $ilPluginAdmin = $DIC[
'ilPluginAdmin'];
246 if (@is_dir($pl_dir .
"/" . $file) && substr($file, 0, 1) !=
"." &&
273 $pdata = $ilPluginAdmin->getAllData(
298 $rec = $cached_component->lookupPluginSlotByName($a_slot_name);
309 $rec = $cached_component->lookupPluginSlotById($a_slot_id);
320 $ilPluginAdmin = $DIC[
'ilPluginAdmin'];
322 return $ilPluginAdmin->getActivePluginsForSlot(
336 $recs = $cached_component->getIlPluginslotById();
338 foreach ($recs as $rec) {
339 $pos = strpos($rec[
"component"],
"/");
341 "component_type" => substr($rec[
"component"], 0, $pos),
342 "component_name" => substr($rec[
"component"], $pos + 1),
343 "slot_id" => $rec[
"id"],
344 "slot_name" => $rec[
"name"]
358 $recs = $cached_component->getIlPluginslotById();
360 foreach ($recs as $rec) {
361 if($cached_component->lookupPluginsBySlotId($rec[
"id"])) {
362 $pos = strpos($rec[
"component"],
"/");
364 "component_type" => substr($rec[
"component"], 0, $pos),
365 "component_name" => substr($rec[
"component"], $pos + 1),
366 "slot_id" => $rec[
"id"],
367 "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.
readPluginInformation(string $pl_dir, string $file)
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.
getPluginInformationFor(string $name)
static createPluginRecord(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
static lookupStoredData(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
Lookup information data in il_plugin.
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.
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.
getComponentType()
Get Component Type.
getPluginsDirectory()
Get directory of.
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.
static getAvailableSlots()
Get all plugin slots where plugins are available.