ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
9
class
ilGlobalUnitConfigurationGUI
extends
ilUnitConfigurationGUI
10
{
11
const
REQUEST_PARAM_SUB_CONTEXT
=
'context'
;
12
16
protected
function
getDefaultCommand
()
17
{
18
return
'showGlobalUnitCategories'
;
19
}
20
24
public
function
getUnitCategoryOverviewCommand
()
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'
;
66
$table =
new
ilGlobalUnitCategoryTableGUI
($this, $this->
getUnitCategoryOverviewCommand
());
67
$table->setData($categories);
68
69
$this->tpl->setContent($table->getHTML());
70
}
71
}
Modules
TestQuestionPool
classes
class.ilGlobalUnitConfigurationGUI.php
Generated on Wed Apr 27 2016 21:01:21 for ILIAS by
1.8.1.2 (using
Doxyfile
)