ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilQuestionPoolImportVerificationTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
10{
14 public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "")
15 {
16 $this->setId('qpl_imp_verify');
17 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
18
19 $this->setOpenFormTag(false);
20 $this->setCloseFormTag(false);
21 $this->disable('sort');
22 $this->setLimit(PHP_INT_MAX);
23 $this->setSelectAllCheckbox('ident[]');
24
25 $this->setRowTemplate('tpl.qpl_import_verification_row.html', 'Modules/TestQuestionPool');
26 $this->addMultiCommand('importVerifiedFile', $this->lng->txt("import"));
27 $this->addCommandButton('cancelImport', $this->lng->txt("cancel"));
28
29 $this->initColumns();
30 }
31
35 protected function initColumns()
36 {
37 $this->addColumn('', '', '1%', true);
38 $this->addColumn($this->lng->txt('question_title'));
39 $this->addColumn($this->lng->txt('question_type'));
40 }
41
45 protected function fillRow($a_set)
46 {
47 $a_set['chb'] = ilUtil::formCheckbox(true, 'ident[]', $a_set['ident']);
48 parent::fillRow($a_set);
49 }
50}
An exception for terminatinating execution or to throw for unit testing.
fillRow($a_set)
Standard Version of Fill Row.Most likely to be overwritten by derived class.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
ilTable2GUI constructor.
Class ilTable2GUI.
setCloseFormTag($a_val)
Set close form tag.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setId($a_val)
Set id.
setOpenFormTag($a_val)
Set open form tag.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
static formCheckbox($checked, $varname, $value, $disabled=false)
??? @access public
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc