ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 */
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilOrguUserPickerToolbarInputGUI.
$html
Definition: example_001.php:87
global $DIC
Definition: saml.php:7
$lng