ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMStShowUserCourses.php
Go to the documentation of this file.
1<?php
3
5
12{
17 protected function createWhereStatement(array $arr_filter)
18 {
19 global $DIC;
20
21 if (!$arr_filter['usr_id']) {
22 return '';
23 }
24
25 $where = parent::createWhereStatement($arr_filter);
26 $usr_filter = "a_table.usr_id = " . $DIC->database()->quote($arr_filter['usr_id'], 'integer');
27
28 if (empty($where)) {
29 return ' WHERE ' . $usr_filter;
30 } else {
31 return $where . ' AND ' . $usr_filter;
32 }
33 }
34}
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24