ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQuestionInternalLinkSelectionTableGUI.php
Go to the documentation of this file.
1<?php
2
24{
30 public function __construct($a_parent_obj, $a_parent_cmd = '', $a_template_context = '')
31 {
35 global $DIC;
36 $ilCtrl = $DIC['ilCtrl'];
37
38 $this->setId('qst_ils_' . $a_parent_obj->getObject()->getId() . '_' . substr(md5($a_template_context), 0, 6));
39 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
40
41 $this->setRowTemplate('tpl.il_as_qpl_question_internal_link_selection_table_row.html', 'components/ILIAS/TestQuestionPool');
42 $this->setLimit(PHP_INT_MAX);
43
44 $this->setFormAction($ilCtrl->getFormAction($this->getParentObject(), 'cancelExplorer'));
45
46 $this->disable('hits');
47 $this->disable('numinfo');
48 $this->disable('header');
49
50 $this->setDefaultOrderField('title');
51 $this->setDefaultOrderDirection('ASC');
52
53 $this->addCommandButton('cancelExplorer', $this->lng->txt('cancel'));
54
55 $this->initColumns();
56 }
57
61 protected function initColumns(): void
62 {
63 $this->addColumn($this->lng->txt('title'), 'title');
64 $this->addColumn($this->lng->txt('description'), 'description');
65 $this->addColumn($this->lng->txt('link'), '');
66 }
67}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
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)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
setDefaultOrderDirection(string $a_defaultorderdirection)
disable(string $a_module_name)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26