ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilQuestionPoolImportVerificationTableGUI.php
Go to the documentation of this file.
1 <?php
2 
23 {
27  public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "")
28  {
29  $this->setId('qpl_imp_verify');
30  parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
31 
32  $this->setOpenFormTag(false);
33  $this->setCloseFormTag(false);
34  $this->disable('sort');
35  $this->setLimit(PHP_INT_MAX);
36  $this->setSelectAllCheckbox('ident[]');
37 
38  $this->setRowTemplate('tpl.qpl_import_verification_row.html', 'Modules/TestQuestionPool');
39  $this->addMultiCommand('importVerifiedFile', $this->lng->txt("import"));
40  $this->addCommandButton('cancelImport', $this->lng->txt("cancel"));
41  $this->setShowRowsSelector(false); // Removed due to #38976 - losing upload file on roundtrip
42  $this->initColumns();
43  }
44 
48  protected function initColumns(): void
49  {
50  $this->addColumn('', '', '1%', true);
51  $this->addColumn($this->lng->txt('question_title'));
52  $this->addColumn($this->lng->txt('question_type'));
53  }
54 
58  protected function fillRow(array $a_set): void
59  {
60  $a_set['chb'] = ilLegacyFormElementsUtil::formCheckbox(true, 'ident[]', $a_set['ident']);
61  parent::fillRow($a_set);
62  }
63 }
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)
setCloseFormTag(bool $a_val)
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
setId(string $a_val)
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static formCheckbox(bool $checked, string $varname, string $value, bool $disabled=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__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)
disable(string $a_module_name)
setOpenFormTag(bool $a_val)
addMultiCommand(string $a_cmd, string $a_text)