ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 114 of file class.ilUserFilterGUI.php.

References $ilUser.

Referenced by __construct().

115  {
116  global $ilUser;
117 
118  include_once 'Services/Search/classes/class.ilUserSearchFilter.php';
119  $this->filter = new ilUserSearchFilter($ilUser->getId());
120  return true;
121  }
$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.

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

◆ getHTML()

ilUserFilterGUI::getHTML ( )

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

References $tpl, and ilUtil\prepareFormOutput().

81  {
82  global $ilObjDataCache;
83 
84  $tpl = new ilTemplate('tpl.search_user_filter.html', true, true, 'Services/Search');
85 
86  $tpl->setVariable("FILTER_ACTION", $this->ctrl->getFormAction($this));
87  $tpl->setVariable("TBL_TITLE", $this->lng->txt('trac_lp_filter'));
88  $tpl->setVariable("TXT_LOGIN", $this->lng->txt('login'));
89  $tpl->setVariable("TXT_FIRSTNAME", $this->lng->txt('firstname'));
90  $tpl->setVariable("TXT_LASTNAME", $this->lng->txt('lastname'));
91  $tpl->setVariable("BTN_REFRESH", $this->lng->txt('trac_refresh'));
92 
93  $tpl->setVariable("QUERY", ilUtil::prepareFormOutput($this->filter->getQueryString('login')));
94  $tpl->setVariable("FIRSTNAME", ilUtil::prepareFormOutput($this->filter->getQueryString('firstname')));
95  $tpl->setVariable("LASTNAME", ilUtil::prepareFormOutput($this->filter->getQueryString('lastname')));
96 
97  return $tpl->get();
98  }
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 74 of file class.ilUserFilterGUI.php.

References $usr_id.

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

◆ refresh()

ilUserFilterGUI::refresh ( )

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

References $_GET, and $_POST.

103  {
104  $_GET['offset'] = 0;
105  $this->ctrl->saveParameter($this, 'offset');
106  $this->filter->storeQueryStrings($_POST['filter']);
107  $this->ctrl->returnToParent($this);
108 
109  return true;
110  }
$_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: