5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
6 include_once
'./Services/SystemCheck/classes/class.ilSCTask.php';
21 public function __construct($a_parent_obj, $a_parent_cmd =
"")
23 $this->
setId(
'sc_groups');
24 parent::__construct($a_parent_obj, $a_parent_cmd);
34 $lng->loadLanguageModule(
'sysc');
35 $this->
addColumn($this->lng->txt(
'title'),
'title',
'60%');
36 $this->
addColumn($this->lng->txt(
'last_update'),
'last_update_sort',
'20%');
37 $this->
addColumn($this->lng->txt(
'sysc_completed_num'),
'completed',
'10%');
38 $this->
addColumn($this->lng->txt(
'sysc_failed_num'),
'failed',
'10%');
39 $this->
addColumn($this->lng->txt(
'actions'),
'',
'10%');
41 $this->
setTitle($this->lng->txt(
'sysc_overview'));
43 $this->
setRowTemplate(
'tpl.syscheck_groups_row.html',
'Services/SystemCheck');
44 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
53 $this->tpl->setVariable(
'VAL_TITLE',
$row[
'title']);
56 $this->tpl->setVariable(
61 $this->tpl->setVariable(
'VAL_DESC',
$row[
'description']);
62 $this->tpl->setVariable(
'VAL_LAST_UPDATE',
$row[
'last_update']);
63 $this->tpl->setVariable(
'VAL_COMPLETED',
$row[
'completed']);
64 $this->tpl->setVariable(
'VAL_FAILED',
$row[
'failed']);
66 switch (
$row[
'status']) {
68 $this->tpl->setVariable(
'STATUS_CLASS',
'smallgreen');
71 $this->tpl->setVariable(
'STATUS_CLASS',
'warning');
78 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
80 $list->setSelectionHeaderClass(
'small');
81 $list->setItemLinkClass(
'small');
83 $list->setListTitle($this->lng->txt(
'actions'));
87 $this->lng->txt(
'show'),
91 $this->tpl->setVariable(
'ACTIONS',
$list->getHTML());
101 include_once
'./Services/SystemCheck/classes/class.ilSCGroups.php';
104 $item[
'id'] = $group->getId();
107 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
111 $item[
'title'] = $task_gui->getGroupTitle();
112 $item[
'description'] = $task_gui->getGroupDescription();
113 $item[
'status'] = $group->getStatus();
115 include_once
'./Services/SystemCheck/classes/class.ilSCTasks.php';
121 $item[
'last_update_sort'] = $last_update->get(
IL_CAL_UNIX);
if(isset($_REQUEST['delete'])) $list
__construct($a_parent_obj, $a_parent_cmd="")
Constructor.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static lookupFailed($a_grp_id)
type $ilDB
static lookupLastUpdate($a_grp_id)
Lookup last update of group tasks type $ilDB.
static getInstance()
Get singleton instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static getComponentTaskByForGroup($a_group_id, $a_task_id=null)
get task gui for group
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.
Table GUI for system check groups overview.
parse()
Parse system check groups.
static lookupCompleted($a_grp_id)
type $ilDB