ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_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 }
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
setId($a_val)
Set id.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
disable($a_module_name)
diesables particular modules of table
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.
setOpenFormTag($a_val)
Set open form tag.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
static formCheckbox($checked, $varname, $value, $disabled=false)
??? public
setCloseFormTag($a_val)
Set close form tag.
setLimit($a_limit=0, $a_default_limit=0)