ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
4 require_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 $ilCtrl;
23 
24  $this->setId('qst_ils_' . $a_parent_obj->object->getId() . '_' . substr(md5($a_template_context), 0, 6));
25  parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
26 
27  $this->setRowTemplate('tpl.il_as_qpl_question_internal_link_selection_table_row.html', 'Modules/TestQuestionPool');
28  $this->setLimit(PHP_INT_MAX);
29 
30  $this->setFormAction($ilCtrl->getFormAction($this->getParentObject(), 'cancelExplorer'));
31 
32  $this->disable('hits');
33  $this->disable('numinfo');
34  $this->disable('header');
35 
36  $this->setDefaultOrderField('title');
37  $this->setDefaultOrderDirection('ASC');
38 
39  $this->addCommandButton('cancelExplorer', $this->lng->txt('cancel'));
40 
41  $this->initColumns();
42  }
43 
47  protected function initColumns()
48  {
49  $this->addColumn($this->lng->txt('title'), 'title');
50  $this->addColumn($this->lng->txt('description'), 'description');
51  $this->addColumn($this->lng->txt('link'), '');
52  }
53 }