ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilMStShowUserCourses.php
Go to the documentation of this file.
1 <?php
19 
21 
27 {
32  protected function createWhereStatement(array $arr_filter): 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  }
49 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22