5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
27 public function __construct($a_group_id, $a_parent_obj, $a_parent_cmd =
"")
30 $this->group_id = $a_group_id;
31 $this->
setId(
'sc_groups');
32 $this->access = $DIC->access();
54 $ilCtrl = $DIC[
'ilCtrl'];
57 $lng->loadLanguageModule(
'sysc');
58 $this->
addColumn($this->lng->txt(
'title'),
'title',
'60%');
59 $this->
addColumn($this->lng->txt(
'last_update'),
'last_update_sort',
'20%');
60 $this->
addColumn($this->lng->txt(
'status'),
'status',
'10%');
61 $this->
addColumn($this->lng->txt(
'actions'),
'',
'10%');
63 $this->
setTitle($this->lng->txt(
'sysc_task_overview'));
65 $this->
setRowTemplate(
'tpl.syscheck_tasks_row.html',
'Services/SystemCheck');
66 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
75 $this->tpl->setVariable(
'VAL_TITLE', $row[
'title']);
76 $this->tpl->setVariable(
'VAL_DESC', $row[
'description']);
78 include_once
'./Services/SystemCheck/classes/class.ilSCUtils.php';
80 switch ($row[
'status']) {
82 $this->tpl->setVariable(
'VAL_STATUS_SUCCESS', $text);
86 $this->tpl->setCurrentBlock(
'warning');
87 $this->tpl->setVariable(
'VAL_STATUS_WARNING', $text);
88 $this->tpl->parseCurrentBlock();
92 $this->tpl->setVariable(
'VAL_STATUS_STANDARD', $text);
96 $this->tpl->setVariable(
'VAL_LAST_UPDATE', $row[
'last_update']);
99 if ($this->access->checkAccess(
'write',
'', $this->parent_obj->object->getRefId())) {
100 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
102 $list->setSelectionHeaderClass(
'small');
103 $list->setItemLinkClass(
'small');
104 $list->setId(
'sysc_' . $row[
'id']);
105 $list->setListTitle($this->lng->txt(
'actions'));
107 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
110 $GLOBALS[
'DIC'][
'ilCtrl']->setParameterByClass(get_class($task_handler),
'task_id', $row[
'id']);
111 foreach ((array) $task_handler->getActions() as $actions) {
115 $GLOBALS[
'DIC'][
'ilCtrl']->getLinkTargetByClass(
116 get_class($task_handler),
122 $this->tpl->setVariable(
'ACTIONS', $list->getHTML());
133 include_once
'./Services/SystemCheck/classes/class.ilSCTasks.php';
135 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
138 if (!$task->isActive()) {
143 $item[
'id'] = $task->getId();
144 $item[
'title'] = $task_handler->getTitle();
145 $item[
'description'] = $task_handler->getDescription();
147 $item[
'last_update_sort'] = $task->getLastUpdate()->get(
IL_CAL_UNIX);
148 $item[
'status'] = $task->getStatus();
getGroupId()
Get group id.
static getComponentTask($a_task_id)
parse()
Parse system check groups.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
static getInstanceByGroupId($a_group_id)
Get singleton instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_group_id, $a_parent_obj, $a_parent_cmd="")
Constructor.
__construct(Container $dic, ilPlugin $plugin)
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.
static taskStatus2Text($a_status)
Table GUI for system check task overview.