48 $ilCtrl =
$DIC[
'ilCtrl'];
50 $this->ui_factory =
$DIC->ui()->factory();
51 $this->ui_renderer =
$DIC->ui()->renderer();
52 $this->
access = $DIC->access();
53 $this->request = QuestionPoolDIC::dic()[
'request_data_collector'];
63 && $this->
access->checkAccess(
'write',
'', $this->request->getRefId())
82 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(),
'showUnitsOfCategory'));
87 $this->
setRowTemplate(
'tpl.unit_row_html',
'components/ILIAS/TestQuestionPool');
93 public function fillRow(array $a_set): void
99 $ilCtrl =
$DIC[
'ilCtrl'];
103 && $this->
access->checkAccess(
'write',
'', $this->request->getRefId())
107 $sequence =
new ilNumberInputGUI(
'',
'sequence[' . $a_set[
'unit_id'] .
']');
108 $sequence->setValue($this->position++ * 10);
109 $sequence->setMinValue(0);
110 $sequence->setSize(3);
111 $a_set[
'sequence'] = $sequence->render();
114 $ilCtrl->setParameter($this->
getParentObject(),
'unit_id', $a_set[
'unit_id']);
115 $actions[] = $this->ui_factory->link()->standard($this->
lng->txt(
'edit'), $ilCtrl->getLinkTarget($this->getParentObject(),
'showUnitModificationForm'));
116 $actions[] = $this->ui_factory->link()->standard($this->
lng->txt(
'delete'), $ilCtrl->getLinkTarget($this->getParentObject(),
'confirmDeleteUnit'));
118 $dropdown = $this->ui_factory->dropdown()->standard($actions)->withLabel($this->
lng->txt(
'actions'));
119 $a_set[
'actions'] = $this->ui_renderer->render($dropdown);
121 if ($a_set[
'unit_id'] == $a_set[
'baseunit_id']) {
122 $a_set[
'baseunit'] =
'';
124 parent::fillRow($a_set);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
fillRow(array $a_set)
Standard Version of Fill Row.
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
Class ilUnitConfigurationGUI.
ILIAS UI Renderer $ui_renderer
RequestDataCollector $request
ILIAS UI Factory $ui_factory
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc