/** * Show information about a plugin slot. */ function showPluginSlotInfo() { global $tpl, $lng, $ilTabs, $ilCtrl; if (!DEVMODE) { $ilCtrl->redirect($this, "listPlugins"); } $ilTabs->clearTargets(); $ilTabs->setBackTarget($lng->txt("cmps_slots"), $ilCtrl->getLinkTarget($this, "listSlots")); include_once "./Services/Component/classes/class.ilComponent.php"; $comp = ilComponent::getComponentObject($_GET["ctype"], $_GET["cname"]); include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); // component $ne = new ilNonEditableValueGUI($lng->txt("cmps_component"), "", true); $ne->setValue($comp->getComponentType() . "/" . $comp->getName() . " [" . $comp->getId() . "]"); $form->addItem($ne); // plugin slot $ne = new ilNonEditableValueGUI($lng->txt("cmps_plugin_slot"), "", true); $ne->setValue($comp->getPluginSlotName($_GET["slot_id"]) . " [" . $_GET["slot_id"] . "]"); $form->addItem($ne); // main dir $ne = new ilNonEditableValueGUI($lng->txt("cmps_main_dir"), "", true); $ne->setValue($comp->getPluginSlotDirectory($_GET["slot_id"]) . "/<Plugin_Name>"); $form->addItem($ne); // plugin file $ne = new ilNonEditableValueGUI($lng->txt("cmps_plugin_file"), "", true); $ne->setValue("<" . $lng->txt("cmps_main_dir") . ">" . "/classes/class.il<Plugin_Name>Plugin.php"); $form->addItem($ne); // language files $ne = new ilNonEditableValueGUI($lng->txt("cmps_lang_files"), "", true); $ne->setValue("<" . $lng->txt("cmps_main_dir") . ">" . "/lang/ilias_<Language ID>.lang"); $form->addItem($ne); // db update $ne = new ilNonEditableValueGUI($lng->txt("cmps_db_update"), "", true); $ne->setValue("<" . $lng->txt("cmps_main_dir") . ">" . "/sql/dbupdate.php"); $form->addItem($ne); // lang prefix $ne = new ilNonEditableValueGUI($lng->txt("cmps_plugin_lang_prefixes"), "", true); $ne->setValue($comp->getPluginSlotLanguagePrefix($_GET["slot_id"]) . "<Plugin_ID>_"); $form->addItem($ne); // db prefix $ne = new ilNonEditableValueGUI($lng->txt("cmps_plugin_db_prefixes"), "", true); $ne->setValue($comp->getPluginSlotLanguagePrefix($_GET["slot_id"]) . "<Plugin_ID>_"); $form->addItem($ne); $form->setTitle($lng->txt("cmps_plugin_slot")); // set content and title $tpl->setContent($form->getHTML()); $tpl->setTitle($comp->getComponentType() . "/" . $comp->getName() . ": " . $lng->txt("cmps_plugin_slot") . " \"" . $comp->getPluginSlotName($_GET["slot_id"]) . "\""); $tpl->setDescription(""); }
/** * Show information about a plugin slot. */ function showPluginSlot() { global $tpl, $lng, $ilTabs, $ilCtrl; $ilTabs->clearTargets(); $ilTabs->setBackTarget($lng->txt("cmps_plugins"), $ilCtrl->getLinkTarget($this, "listPlugins")); include_once "./Services/Component/classes/class.ilComponent.php"; $comp = ilComponent::getComponentObject($_GET["ctype"], $_GET["cname"]); // plugins table include_once "./Services/Component/classes/class.ilPluginsTableGUI.php"; $plugins_table = new ilPluginsTableGUI($this, "showPluginSlot", $_GET["ctype"], $_GET["cname"], $_GET["slot_id"]); $tpl->setContent($plugins_table->getHTML()); // set content and title $tpl->setTitle($comp->getComponentType() . "/" . $comp->getName() . ": " . $lng->txt("cmps_plugin_slot") . " \"" . $comp->getPluginSlotName($_GET["slot_id"]) . "\""); $tpl->setDescription(""); }