ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

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

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: saml.php:7
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

Member Function Documentation

◆ __initFilter()

ilUserFilterGUI::__initFilter ( )

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

References $DIC, and $ilUser.

Referenced by __construct().

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  }
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18
+ 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.

References $DIC, $tpl, and ilUtil\prepareFormOutput().

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  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
global $DIC
Definition: saml.php:7
special template class to simplify handling of ITX/PEAR
+ Here is the call graph for this function:

◆ getUserId()

ilUserFilterGUI::getUserId ( )

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

References $usr_id.

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

◆ refresh()

ilUserFilterGUI::refresh ( )

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

References $_GET, and $_POST.

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"]

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: