ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCourses Class Reference

Class ilMStShowUserCourses. More...

+ Inheritance diagram for ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCourses:
+ Collaboration diagram for ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCourses:

Protected Member Functions

 createWhereStatement (array $arr_filter)
 
 createWhereStatement (array $arr_filter)
 Returns the WHERE Part for the Queries using parameter $user_ids AND local variable $filters. More...
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\MyStaff\ListCourses\ilMStListCourses
 __construct (Container $dic)
 ilMStListCourses constructor. More...
 
 getData (array $arr_usr_ids=array(), array $options=array())
 
- Protected Attributes inherited from ILIAS\MyStaff\ListCourses\ilMStListCourses
Container $dic
 

Detailed Description

Member Function Documentation

◆ createWhereStatement()

ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCourses::createWhereStatement ( array  $arr_filter)
protected
Parameters
array$arr_filter
Returns
string

Reimplemented from ILIAS\MyStaff\ListCourses\ilMStListCourses.

Definition at line 32 of file class.ilMStShowUserCourses.php.

32 : string
33 {
34 global $DIC;
35
36 if (!$arr_filter['usr_id']) {
37 return '';
38 }
39
40 $where = parent::createWhereStatement($arr_filter);
41 $usr_filter = "a_table.usr_id = " . $DIC->database()->quote($arr_filter['usr_id'], 'integer');
42
43 if (empty($where)) {
44 return ' WHERE ' . $usr_filter;
45 } else {
46 return $where . ' AND ' . $usr_filter;
47 }
48 }
global $DIC
Definition: shib_login.php:26

References $DIC.


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