43 $ilCtrl = $DIC[
'ilCtrl'];
45 $this->ui_factory = $DIC->ui()->factory();
46 $this->ui_renderer = $DIC->ui()->renderer();
72 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(),
'showUnitsOfCategory'));
77 $this->
setRowTemplate(
'tpl.unit_row_html',
'components/ILIAS/TestQuestionPool');
83 public function fillRow(array $a_set):
void 89 $ilCtrl = $DIC[
'ilCtrl'];
95 $sequence->setValue($this->position++ * 10);
96 $sequence->setMinValue(0);
97 $sequence->setSize(3);
98 $a_set[
'sequence'] = $sequence->render();
101 $ilCtrl->setParameter($this->
getParentObject(),
'unit_id', $a_set[
'unit_id']);
102 $actions[] = $this->ui_factory->link()->standard($this->
lng->txt(
'edit'), $ilCtrl->getLinkTarget($this->
getParentObject(),
'showUnitModificationForm'));
103 $actions[] = $this->ui_factory->link()->standard($this->
lng->txt(
'delete'), $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteUnit'));
105 $dropdown = $this->ui_factory->dropdown()->standard($actions)->withLabel($this->
lng->txt(
'actions'));
106 $a_set[
'actions'] = $this->ui_renderer->render($dropdown);
108 if ($a_set[
'unit_id'] == $a_set[
'baseunit_id']) {
109 $a_set[
'baseunit'] =
'';
111 parent::fillRow($a_set);
setFormAction(string $a_form_action, bool $a_multipart=false)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
Class ilUnitConfigurationGUI.
ILIAS UI Factory $ui_factory
fillRow(array $a_set)
Standard Version of Fill Row.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
ILIAS UI Renderer $ui_renderer
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
__construct(?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMultiCommand(string $a_cmd, string $a_text)