35 $ilCtrl = $DIC[
'ilCtrl'];
42 $this->
addColumn($this->
lng->txt(
'title'),
'category',
'99%');
47 $ref_id = $DIC->testQuestionPool()->internal()->request()->getRefId();
49 if (
$type ===
'assf') {
50 $hasAccess = $DIC->rbac()->system()->checkAccess(
'edit',
$ref_id);
52 $hasAccess = $DIC->access()->checkAccess(
'edit', $cmd,
$ref_id);
64 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(), $cmd));
66 $this->
setRowTemplate(
'tpl.unit_category_row.html',
'Modules/TestQuestionPool');
74 public function fillRow(array $row):
void 80 $ilCtrl = $DIC[
'ilCtrl'];
85 $action->setId(
'asl_content_' . $row[
'category_id']);
86 $action->setAsynch(
false);
87 $action->setListTitle($this->
lng->txt(
'actions'));
88 $ilCtrl->setParameter($this->
getParentObject(),
'category_id', $row[
'category_id']);
89 $action->addItem($this->
lng->txt(
'un_show_units'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'showUnitsOfCategory'));
90 $ref_id = $DIC->testQuestionPool()->internal()->request()->getRefId();
92 if (
$type ===
'assf') {
93 $hasAccess = $DIC->rbac()->system()->checkAccess(
'edit',
$ref_id);
95 $hasAccess = $DIC->access()->checkAccess(
'edit',
'showUnitCategoryModificationForm',
$ref_id) &&
96 $DIC->access()->checkAccess(
'edit',
'confirmDeleteCategory',
$ref_id);
100 $action->addItem($this->
lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'showUnitCategoryModificationForm'));
101 $action->addItem($this->
lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteCategory'));
104 $action->addItem($this->
lng->txt(
'import'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmImportGlobalCategory'));
106 $row[
'title_href'] = $ilCtrl->getLinkTarget($this->
getParentObject(),
'showUnitsOfCategory');
108 $row[
'actions'] = $action->getHtml();
110 parent::fillRow($row);
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Standard Version of Fill Row.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
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="")
static _lookupType(int $id, bool $reference=false)
addMultiCommand(string $a_cmd, string $a_text)