5 include_once(
"./Services/Component/classes/class.ilPlugin.php");
31 if ($a_slot_id !=
"") {
42 $rec = $cached_component->lookupPluginSlotById($this->
getSlotId());
53 $this->componenttype = $a_componenttype;
63 return $this->componenttype;
73 $this->componentname = $a_componentname;
83 return $this->componentname;
93 $this->slotid = $a_slotid;
103 return $this->slotid;
113 $this->slotname = $a_slotname;
123 return $this->slotname;
140 return "./Customizing/global/plugins/" . $a_ctype .
151 $a_plugin_name .
"/plugin.php";
172 $a_plugin_name .
"/classes/class.il" . $a_plugin_name .
"Plugin.php";
193 if ($this->prefix ==
"") {
201 return $this->prefix;
209 global $ilPluginAdmin;
214 if (!@is_dir($pl_dir)) {
218 $dir = opendir($pl_dir);
221 while (
$file = readdir($dir)) {
225 if (@is_dir($pl_dir .
"/" .
$file) && substr($file, 0, 1) !=
"." &&
238 if (count($plugin) == 0) {
247 $pdata = $ilPluginAdmin->getAllData(
254 $plugin = array_merge($plugin, $pdata);
256 $plugin[
"name"] =
$file;
261 $plugins[] = $plugin;
275 $rec = $cached_component->lookupPluginSlotByName($a_slot_name);
286 $rec = $cached_component->lookupPluginSlotById($a_slot_id);
296 global $ilPluginAdmin;
298 return $ilPluginAdmin->getActivePluginsForSlot(
312 $recs = $cached_component->getIlPluginslotById();
314 foreach ($recs as $rec) {
315 $pos = strpos($rec[
"component"],
"/");
317 "component_type" => substr($rec[
"component"], 0, $pos),
318 "component_name" => substr($rec[
"component"], $pos + 1),
319 "slot_id" => $rec[
"id"],
320 "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.