ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 $DIC;
54  $ilToolbar = $DIC['ilToolbar'];
55 
56  $ilToolbar->addButton($this->lng->txt('un_add_category'), $this->ctrl->getLinkTarget($this, 'showUnitCategoryCreationForm'));
57 
58  parent::showGlobalUnitCategories();
59  }
60 
64  protected function showUnitCategories(array $categories)
65  {
66  require_once 'Modules/TestQuestionPool/classes/tables/class.ilGlobalUnitCategoryTableGUI.php';
68  $table->setData($categories);
69 
70  $this->tpl->setContent($table->getHTML());
71  }
72 }
global $DIC
Definition: saml.php:7
Class ilGlobalUnitConfigurationGUI.
Class ilUnitConfigurationGUI .
repository()
Definition: repository.php:5
Class ilGlobalUnitCategoryTableGUI.
if(empty($password)) $table
Definition: pwgen.php:24