ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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 */
3
require_once(
"./Modules/OrgUnit/classes/class.ilMultiUserToolbarInputGUI.php"
);
11
class
ilOrguUserPickerToolbarInputGUI
extends
ilMultiUserToolbarInputGUI
{
12
13
protected
$staff
;
14
15
public
function
getToolbarHTML
()
16
{
17
$html
=
"<form method='post' class='ilOrguUserPicker' action='"
.$this->getSubmitLink().
"'>"
;
18
$html
.= $this->render();
19
$html
.= $this->
getSelectHTML
();
20
$html
.= $this->getSubmitButtonHTML();
21
$html
.=
"</form>"
;
22
return
$html
;
23
}
24
25
protected
function
getSelectHTML
(){
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
parent::setValueByArray($array);
39
$this->staff = $array[$this->searchPostVar().
"_role"
];
40
}
41
42
public
function
getStaff
(){
43
return
$this->staff
;
44
}
45
}
46
?>
ilOrguUserPickerToolbarInputGUI\$staff
$staff
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:13
ilOrguUserPickerToolbarInputGUI\setValueByArray
setValueByArray($array)
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:37
ilMultiUserToolbarInputGUI
ilOrguUserPickerToolbarInputGUI\getToolbarHTML
getToolbarHTML()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:15
ilOrguUserPickerToolbarInputGUI\getStaff
getStaff()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:42
ilOrguUserPickerToolbarInputGUI\getSelectHTML
getSelectHTML()
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:25
ilOrguUserPickerToolbarInputGUI
Class ilOrguUserPickerToolbarInputGUI.
Definition:
class.ilOrguUserPickerToolbarInputGUI.php:11
$lng
global $lng
Definition:
privfeed.php:17
php
$DIC
global $DIC
Definition:
imagemanager.php:32
$html
$html
Definition:
example_001.php:87
Modules
OrgUnit
classes
class.ilOrguUserPickerToolbarInputGUI.php
Generated on Fri Jan 17 2025 19:01:00 for ILIAS by
1.8.13 (using
Doxyfile
)