ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMStShowUserCourses.php
Go to the documentation of this file.
1<?php
2
9{
10
17 public static function getData(array $arr_usr_ids = array(), array $options = array())
18 {
19 return parent::getData($arr_usr_ids, $options);
20 }
21
22
30 protected static function createWhereStatement(array $arr_usr_ids, array $arr_filter, $tmp_table_user_matrix)
31 {
32 global $DIC;
33
34 if (!$arr_filter['usr_id']) {
35 return '';
36 }
37
38 $where = parent::createWhereStatement($arr_usr_ids, $arr_filter, $tmp_table_user_matrix);
39 $usr_filter = "usr_data.usr_id = " . $DIC->database()->quote($arr_filter['usr_id'], 'integer');
40
41 if (empty($where)) {
42 return ' WHERE ' . $usr_filter;
43 } else {
44 return $where . ' AND ' . $usr_filter;
45 }
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Class ilMStListCourses.
Class ilMStShowUserCourses.
static getData(array $arr_usr_ids=array(), array $options=array())
static createWhereStatement(array $arr_usr_ids, array $arr_filter, $tmp_table_user_matrix)
global $DIC
Definition: saml.php:7