4include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
    5include_once(
"Services/Component/classes/class.ilComponent.php");
 
   24                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   26                $this->
setId(
"cmpspl");
 
   28                $this->
addColumn($lng->txt(
"cmps_plugin"), 
"plugin_name");
 
   29                $this->
addColumn($lng->txt(
"id"), 
"plugin_id");
 
   30                $this->
addColumn($lng->txt(
"cmps_plugin_slot"), 
"slot_name");
 
   31                $this->
addColumn($lng->txt(
"cmps_component"), 
"component_name");                        
 
   32                $this->
addColumn($lng->txt(
"active"), 
"plugin_active");
 
   40                        "Services/Component");
 
   44                include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");              
 
   55                $log->debug(
"plugins - start processing components");
 
   58                include_once(
"./Services/Component/classes/class.ilModule.php");
 
   60                foreach ($modules as $m)
 
   66                        foreach ($plugin_slots as $ps)
 
   68                                $log->debug(
"module ".$m[
"subdir"].
": found slot (".$ps[
"id"].
") ".$ps[
"name"]);
 
   70                                include_once(
"./Services/Component/classes/class.ilPluginSlot.php");
 
   72                                foreach ($slot->getPluginsInformation() as $p)
 
   74                                        $log->debug(
"module ".$m[
"subdir"].
": found plugin (".$p[
"id"].
") ".$p[
"name"]);
 
   80                include_once(
"./Services/Component/classes/class.ilService.php");
 
   82                foreach ($services as $s)
 
   88                        foreach ($plugin_slots as $ps)
 
   90                                $log->debug(
"service ".$s[
"subdir"].
": found slot (".$ps[
"id"].
") ".$ps[
"name"]);
 
   93                                foreach ($slot->getPluginsInformation() as $p)
 
   95                                        $log->debug(
"service ".$s[
"subdir"].
": found plugin (".$p[
"id"].
") ".$p[
"name"]);
 
  103                $log->debug(
"plugins - stop processing components");
 
  126                return array(
"slot_name" => $a_slot->
getSlotName(),
 
  127                        "component_type" => $a_type,
 
  128                        "component_name" => $a_slot_subdir,
 
  130                        "plugin_id" => $a_plugin[
"id"],                 
 
  131                        "plugin_name" => $a_plugin[
"name"],
 
  132                        "plugin_active" => $a_plugin[
"is_active"],
 
  133                        "activation_possible" => $a_plugin[
"activation_possible"],
 
  134                        "needs_update" => $a_plugin[
"needs_update"],
 
  150                $ilCtrl->setParameter($this->parent_obj, 
"ctype", $a_set[
"component_type"]);
 
  151                $ilCtrl->setParameter($this->parent_obj, 
"cname", $a_set[
"component_name"]);            
 
  152                        $ilCtrl->setParameter($this->parent_obj, 
"slot_id", $a_set[
"slot_id"]);
 
  156                $ilCtrl->setParameter($this->parent_obj, 
"plugin_id", $a_set[
"plugin_id"]);
 
  157                $action[
$lng->txt(
"info")] = 
$ilCtrl->getLinkTarget($this->parent_obj, 
"showPlugin");
 
  158                $ilCtrl->setParameter($this->parent_obj, 
"plugin_id", 
"");
 
  160                $ilCtrl->setParameter($this->parent_obj, 
"pname", $a_set[
"plugin_name"]);
 
  162                if ($a_set[
"plugin_active"])
 
  164                        if ($a_set[
"has_lang"])
 
  166                                $action[
$lng->txt(
"cmps_refresh")] = 
 
  167                                        $ilCtrl->getLinkTarget($this->parent_obj, 
"refreshLanguages");                          
 
  170                        if ($a_set[
"has_conf"])
 
  172                                $action[
$lng->txt(
"cmps_configure")] = 
 
  176                        $action[
$lng->txt(
"cmps_deactivate")] = 
 
  177                                $ilCtrl->getLinkTarget($this->parent_obj, 
"deactivatePlugin");                                          
 
  179                else if ($a_set[
"activation_possible"])         
 
  181                        $action[
$lng->txt(
"cmps_activate")] = 
 
  182                                $ilCtrl->getLinkTarget($this->parent_obj, 
"activatePlugin");                                            
 
  186                if ($a_set[
"needs_update"])
 
  188                        $action[
$lng->txt(
"cmps_update")] =     
 
  189                                $ilCtrl->getLinkTarget($this->parent_obj, 
"updatePlugin");
 
  193                $action[
$lng->txt(
"cmps_uninstall")] = 
 
  194                        $ilCtrl->getLinkTarget($this->parent_obj, 
"confirmUninstallPlugin");    
 
  196                $ilCtrl->setParameter($this->parent_obj, 
"pname", 
"");
 
  201                        $alist->setId($a_set[
"plugin_id"]);
 
  202                        $alist->setListTitle(
$lng->txt(
"actions"));
 
  204                        foreach($action as $caption => 
$cmd)
 
  206                                $alist->addItem($caption, 
"", 
$cmd);
 
  209                        $this->tpl->setVariable(
"ACTION_SELECTOR", $alist->getHTML());
 
  212                $this->tpl->setVariable(
"TXT_SLOT_NAME", $a_set[
"slot_name"]);
 
  213                $this->tpl->setVariable(
"TXT_COMP_NAME", 
 
  214                        $a_set[
"component_type"].
"/".$a_set[
"component_name"]); 
 
  216                $act_str = ($a_set[
"plugin_active"])
 
  217                        ? 
"<b>".
$lng->txt(
"yes").
"</b>" 
  219                $this->tpl->setVariable(
"TXT_PLUGIN_NAME", $a_set[
"plugin_name"]);      
 
  220                $this->tpl->setVariable(
"TXT_PLUGIN_ID", $a_set[
"plugin_id"]);          
 
  221                $this->tpl->setVariable(
"TXT_ACTIVE", $act_str);                
 
User interface class for advanced drop-down selection lists.
static lookupPluginSlots($a_type, $a_name)
Lookup all plugin slots of a component.
static getLogger($a_component_id)
Get component logger.
static getAvailableCoreModules()
Get all available core modules.
getPluginsDirectory()
Get directory of.
getSlotName()
Get Slot Name.
static getAvailableLangFiles($a_lang_directory)
Get array of all language files in the plugin.
static getConfigureClassName($a_name)
Get plugin configure class name.
static hasConfigureClass($a_slot_dir, $a_name)
Has the plugin a configure class?
TableGUI class for components listing.
fillRow($a_set)
Standard Version of Fill Row.
getComponents()
Get pages for list.
__construct($a_parent_obj, $a_parent_cmd="")
gatherPluginData($a_type, ilPluginSlot $a_slot, $a_slot_subdir, array $a_plugin)
Process plugin data for table row.
static getAvailableCoreServices()
Get all available core services.
setEnableHeader($a_enableheader)
Set Enable Header.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.