ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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");
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 ?>
Class ilOrguUserPickerToolbarInputGUI.
global $lng
Definition: privfeed.php:17
global $DIC
$html
Definition: example_001.php:87