ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilQuestionInternalLinkSelectionTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
11{
17 public function __construct($a_parent_obj, $a_parent_cmd = '', $a_template_context = '')
18 {
22 global $DIC;
23 $ilCtrl = $DIC['ilCtrl'];
24
25 $this->setId('qst_ils_' . $a_parent_obj->object->getId() . '_' . substr(md5($a_template_context), 0, 6));
26 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
27
28 $this->setRowTemplate('tpl.il_as_qpl_question_internal_link_selection_table_row.html', 'Modules/TestQuestionPool');
29 $this->setLimit(PHP_INT_MAX);
30
31 $this->setFormAction($ilCtrl->getFormAction($this->getParentObject(), 'cancelExplorer'));
32
33 $this->disable('hits');
34 $this->disable('numinfo');
35 $this->disable('header');
36
37 $this->setDefaultOrderField('title');
38 $this->setDefaultOrderDirection('ASC');
39
40 $this->addCommandButton('cancelExplorer', $this->lng->txt('cancel'));
41
42 $this->initColumns();
43 }
44
48 protected function initColumns()
49 {
50 $this->addColumn($this->lng->txt('title'), 'title');
51 $this->addColumn($this->lng->txt('description'), 'description');
52 $this->addColumn($this->lng->txt('link'), '');
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
Class ilTable2GUI.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
ilTable2GUI constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7