ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 $ilCtrl, $lng, $tpl, and __initFilter().

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
+ Here is the call graph for this function:

Member Function Documentation

◆ __initFilter()

ilUserFilterGUI::__initFilter ( )

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

References $ilUser.

Referenced by __construct().

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  }
$ilUser
Definition: imgupload.php:18
+ Here is the caller graph for this function:

◆ executeCommand()

ilUserFilterGUI::executeCommand ( )

execute command

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

References $cmd.

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

◆ getHTML()

ilUserFilterGUI::getHTML ( )

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

References ilUtil\prepareFormOutput().

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

◆ getUserId()

ilUserFilterGUI::getUserId ( )

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

References $usr_id.

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

◆ refresh()

ilUserFilterGUI::refresh ( )

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

References $_GET, and $_POST.

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

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

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