ILIAS  release_4-4 Revision
class.ilGlobalUnitConfigurationGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Modules/TestQuestionPool/classes/class.ilUnitConfigurationGUI.php';
5 
10 {
11  const REQUEST_PARAM_SUB_CONTEXT = 'context';
12 
16  protected function getDefaultCommand()
17  {
18  return 'showGlobalUnitCategories';
19  }
20 
25  {
26  return 'showGlobalUnitCategories';
27  }
28 
32  public function isCRUDContext()
33  {
34  return true;
35  }
36 
40  public function getUniqueId()
41  {
42  return $this->repository->getConsumerId() . '_global';
43  }
44 
48  protected function showGlobalUnitCategories()
49  {
53  global $ilToolbar;
54 
55  $ilToolbar->addButton($this->lng->txt('un_add_category'), $this->ctrl->getLinkTarget($this, 'showUnitCategoryCreationForm'));
56 
57  parent::showGlobalUnitCategories();
58  }
59 
63  protected function showUnitCategories(array $categories)
64  {
65  require_once 'Modules/TestQuestionPool/classes/tables/class.ilGlobalUnitCategoryTableGUI.php';
67  $table->setData($categories);
68 
69  $this->tpl->setContent($table->getHTML());
70  }
71 }
Class ilGlobalUnitConfigurationGUI.
Class ilUnitConfigurationGUI .
Class ilGlobalUnitCategoryTableGUI.