ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilOrguUserPickerToolbarInputGUI.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
10
class
ilOrguUserPickerToolbarInputGUI
extends
ilMultiUserToolbarInputGUI
11
{
12
protected
$staff
;
13
14
public
function
getToolbarHTML
()
15
{
16
$html
=
"<form method='post' class='ilOrguUserPicker' action='"
. $this->getSubmitLink() .
"'>"
;
17
$html
.= $this->render();
18
$html
.= $this->
getSelectHTML
();
19
$html
.= $this->getSubmitButtonHTML();
20
$html
.=
"</form>"
;
21
return
$html
;
22
}
23
24
protected
function
getSelectHTML
()
25
{
26
global
$DIC
;
27
$lng
= $DIC[
'lng'
];
28
$html
=
"
29
<select name='"
. $this->searchPostVar() .
"_role"
.
"'>
30
<option value='employee'>"
.
$lng
->txt(
"employee"
) .
"</option>
31
<option value='superior'>"
.
$lng
->txt(
"superior"
) .
"</option>
32
</select>
33
"
;
34
return
$html
;
35
}
36
37
public
function
setValueByArray
($array)
38
{
39
parent::setValueByArray($array);
40
$this->staff = $array[$this->searchPostVar() .
"_role"
];
41
}
42
43
public
function
getStaff
()
44
{
45
return
$this->staff
;
46
}
47
}
ilOrguUserPickerToolbarInputGUI\$staff
$staff
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:12
$DIC
global $DIC
Definition:
saml.php:7
ilOrguUserPickerToolbarInputGUI\setValueByArray
setValueByArray($array)
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:37
ilMultiUserToolbarInputGUI
ilOrguUserPickerToolbarInputGUI\getToolbarHTML
getToolbarHTML()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:14
$lng
$lng
Definition:
save_question_post_data.php:23
ilOrguUserPickerToolbarInputGUI\getStaff
getStaff()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:43
ilOrguUserPickerToolbarInputGUI\getSelectHTML
getSelectHTML()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:24
ilOrguUserPickerToolbarInputGUI
Class ilOrguUserPickerToolbarInputGUI.
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:10
php
$html
$html
Definition:
example_001.php:87
Modules
OrgUnit
classes
class.ilOrguUserPickerToolbarInputGUI.php
Generated on Thu Jan 30 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)