ILIAS  release_7 Revision v7.30-3-g800a261c036
ilUserFilterGUI Class Reference
+ Collaboration diagram for ilUserFilterGUI:

Public Member Functions

 __construct ($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.

Constructor & Destructor Documentation

◆ __construct()

ilUserFilterGUI::__construct (   $a_usr_id)

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

48 {
49 global $DIC;
50
51 $lng = $DIC['lng'];
52 $ilCtrl = $DIC['ilCtrl'];
53 $tpl = $DIC['tpl'];
54
55 $this->ctrl = $ilCtrl;
56 $this->lng = $lng;
57 $this->lng->loadLanguageModule('trac');
58 $this->tpl = $tpl;
59 $this->usr_id = $a_usr_id;
60 $this->__initFilter();
61 }
global $DIC
Definition: goto.php:24

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

+ Here is the call graph for this function:

Member Function Documentation

◆ __initFilter()

ilUserFilterGUI::__initFilter ( )

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

121 {
122 global $DIC;
123
124 $ilUser = $DIC['ilUser'];
125
126 include_once 'Services/Search/classes/class.ilUserSearchFilter.php';
127 $this->filter = new ilUserSearchFilter($ilUser->getId());
128 return true;
129 }
filter()
Definition: filter.php:2
$ilUser
Definition: imgupload.php:18

References $DIC, $ilUser, and filter().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilUserFilterGUI::executeCommand ( )

execute command

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

67 {
68 switch ($this->ctrl->getNextClass()) {
69 default:
70 $cmd = $this->ctrl->getCmd() ? $this->ctrl->getCmd() : 'show';
71 $this->$cmd();
72
73 }
74 return true;
75 }

◆ getHTML()

ilUserFilterGUI::getHTML ( )

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

85 {
86 global $DIC;
87
88 $ilObjDataCache = $DIC['ilObjDataCache'];
89
90 $tpl = new ilTemplate('tpl.search_user_filter.html', true, true, 'Services/Search');
91
92 $tpl->setVariable("FILTER_ACTION", $this->ctrl->getFormAction($this));
93 $tpl->setVariable("TBL_TITLE", $this->lng->txt('trac_lp_filter'));
94 $tpl->setVariable("TXT_LOGIN", $this->lng->txt('login'));
95 $tpl->setVariable("TXT_FIRSTNAME", $this->lng->txt('firstname'));
96 $tpl->setVariable("TXT_LASTNAME", $this->lng->txt('lastname'));
97 $tpl->setVariable("BTN_REFRESH", $this->lng->txt('trac_refresh'));
98
99 $tpl->setVariable("QUERY", ilUtil::prepareFormOutput($this->filter->getQueryString('login')));
100 $tpl->setVariable("FIRSTNAME", ilUtil::prepareFormOutput($this->filter->getQueryString('firstname')));
101 $tpl->setVariable("LASTNAME", ilUtil::prepareFormOutput($this->filter->getQueryString('lastname')));
102
103 return $tpl->get();
104 }
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 $DIC, $tpl, filter(), and ilUtil\prepareFormOutput().

+ Here is the call graph for this function:

◆ getUserId()

ilUserFilterGUI::getUserId ( )

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

79 {
80 return $this->usr_id;
81 }

References $usr_id.

◆ refresh()

ilUserFilterGUI::refresh ( )

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

109 {
110 $_GET['offset'] = 0;
111 $this->ctrl->saveParameter($this, 'offset');
112 $this->filter->storeQueryStrings($_POST['filter']);
113 $this->ctrl->returnToParent($this);
114
115 return true;
116 }
$_GET["client_id"]
$_POST["username"]

References $_GET, $_POST, and filter().

+ Here is the call graph for this function:

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 __construct().

◆ $tpl

ilUserFilterGUI::$tpl = null

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

Referenced by __construct(), and getHTML().

◆ $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: