ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilUserFilterGUI Class Reference
+ Collaboration diagram for ilUserFilterGUI:

Public Member Functions

 ilUserFilterGUI ($a_usr_id)
 
executeCommand ()
 execute command More...
 
 getUserId ()
 
 getHTML ()
 
 refresh ()
 
 __initFilter ()
 

Data Fields

 $usr_id = null
 
 $tpl = null
 
 $lng = null
 
 $ctrl = null
 

Detailed Description

Definition at line 40 of file class.ilUserFilterGUI.php.

Member Function Documentation

◆ __initFilter()

ilUserFilterGUI::__initFilter ( )

Definition at line 115 of file class.ilUserFilterGUI.php.

116 {
117 global $ilUser;
118
119 include_once 'Services/Search/classes/class.ilUserSearchFilter.php';
120 $this->filter = new ilUserSearchFilter($ilUser->getId());
121 return true;
122 }
global $ilUser
Definition: imgupload.php:15

References $ilUser.

Referenced by ilUserFilterGUI().

+ Here is the caller graph for this function:

◆ executeCommand()

& ilUserFilterGUI::executeCommand ( )

execute command

Definition at line 62 of file class.ilUserFilterGUI.php.

63 {
64 switch($this->ctrl->getNextClass())
65 {
66 default:
67 $cmd = $this->ctrl->getCmd() ? $this->ctrl->getCmd() : 'show';
68 $this->$cmd();
69
70 }
71 return true;
72 }
$cmd
Definition: sahs_server.php:35

References $cmd.

◆ getHTML()

ilUserFilterGUI::getHTML ( )

Definition at line 81 of file class.ilUserFilterGUI.php.

82 {
83 global $ilObjDataCache;
84
85 $tpl = new ilTemplate('tpl.search_user_filter.html',true,true,'Services/Search');
86
87 $tpl->setVariable("FILTER_ACTION",$this->ctrl->getFormAction($this));
88 $tpl->setVariable("TBL_TITLE",$this->lng->txt('trac_lp_filter'));
89 $tpl->setVariable("TXT_LOGIN",$this->lng->txt('login'));
90 $tpl->setVariable("TXT_FIRSTNAME",$this->lng->txt('firstname'));
91 $tpl->setVariable("TXT_LASTNAME",$this->lng->txt('lastname'));
92 $tpl->setVariable("BTN_REFRESH",$this->lng->txt('trac_refresh'));
93
94 $tpl->setVariable("QUERY",ilUtil::prepareFormOutput($this->filter->getQueryString('login')));
95 $tpl->setVariable("FIRSTNAME",ilUtil::prepareFormOutput($this->filter->getQueryString('firstname')));
96 $tpl->setVariable("LASTNAME",ilUtil::prepareFormOutput($this->filter->getQueryString('lastname')));
97
98 return $tpl->get();
99 }
special template class to simplify handling of ITX/PEAR
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References $tpl, and ilUtil\prepareFormOutput().

+ Here is the call graph for this function:

◆ getUserId()

ilUserFilterGUI::getUserId ( )

Definition at line 75 of file class.ilUserFilterGUI.php.

76 {
77 return $this->usr_id;
78 }

References $usr_id.

◆ ilUserFilterGUI()

ilUserFilterGUI::ilUserFilterGUI (   $a_usr_id)

Definition at line 47 of file class.ilUserFilterGUI.php.

48 {
49 global $lng,$ilCtrl,$tpl;
50
51 $this->ctrl =& $ilCtrl;
52 $this->lng =& $lng;
53 $this->lng->loadLanguageModule('trac');
54 $this->tpl =& $tpl;
55 $this->usr_id = $a_usr_id;
56 $this->__initFilter();
57 }
global $ilCtrl
Definition: ilias.php:18

References $ilCtrl, $lng, $tpl, and __initFilter().

+ Here is the call graph for this function:

◆ refresh()

ilUserFilterGUI::refresh ( )

Definition at line 103 of file class.ilUserFilterGUI.php.

104 {
105 $_GET['offset'] = 0;
106 $this->ctrl->saveParameter($this,'offset');
107 $this->filter->storeQueryStrings($_POST['filter']);
108 $this->ctrl->returnToParent($this);
109
110 return true;
111 }
$_GET["client_id"]
$_POST['username']
Definition: cron.php:12

References $_GET, and $_POST.

Field Documentation

◆ $ctrl

ilUserFilterGUI::$ctrl = null

Definition at line 45 of file class.ilUserFilterGUI.php.

◆ $lng

ilUserFilterGUI::$lng = null

Definition at line 44 of file class.ilUserFilterGUI.php.

Referenced by ilUserFilterGUI().

◆ $tpl

ilUserFilterGUI::$tpl = null

Definition at line 43 of file class.ilUserFilterGUI.php.

Referenced by getHTML(), and ilUserFilterGUI().

◆ $usr_id

ilUserFilterGUI::$usr_id = null

Definition at line 42 of file class.ilUserFilterGUI.php.

Referenced by getUserId().


The documentation for this class was generated from the following file: