18 {
20
21
22 if (count($arr_usr_ids) == 0) {
24 return 0;
25 } else {
26 return array();
27 }
28 }
29
30 $_options = array(
31 'filters' => array(),
32 'sort' => array(),
33 'limit' => array(),
34 'count' => false,
35 );
37
38 $select = 'SELECT
39 usr_id,
40 time_limit_owner,
41 login,
42 gender,
43 firstname,
44 lastname,
45 title,
46 institution,
47 department,
48 street,
49 zipcode,
50 city,
51 country,
52 sel_country,
53 hobby,
54 email,
55 matriculation,
56 phone_office,
57 phone_mobile,
58 active
59 FROM ' .
$DIC->database()->quoteIdentifier(
'usr_data') .
60
62
65
67 }
68
70 $select .=
" ORDER BY " .
$options[
'sort'][
'field'] .
" " .
$options[
'sort'][
'direction'];
71 }
72
74 $select .=
" LIMIT " .
$options[
'limit'][
'start'] .
"," .
$options[
'limit'][
'end'];
75 }
76
78 $user_data = array();
79
80 while ($user =
$DIC->database()->fetchAssoc(
$result)) {
82 $list_user->setUsrId($user['usr_id']);
83 $list_user->setGender($user['gender']);
84 $list_user->setTitle($user['title']);
85 $list_user->setInstitution($user['institution']);
86 $list_user->setDepartment($user['department']);
87 $list_user->setStreet($user['street']);
88 $list_user->setZipcode($user['zipcode']);
89 $list_user->setCity($user['city']);
90 $list_user->setCountry($user['country']);
91 $list_user->setSelCountry($user['sel_country']);
92 $list_user->setHobby($user['hobby']);
93 $list_user->setMatriculation($user['matriculation']);
94 $list_user->setActive($user['active']);
95 $list_user->setTimeLimitOwner($user['time_limit_owner']);
96 $list_user->setLogin($user['login']);
97 $list_user->setFirstname($user['firstname']);
98 $list_user->setLastname($user['lastname']);
99 $list_user->setEmail($user['email']);
100 $list_user->setPhone($user['phone_office']);
101 $list_user->setMobilePhone($user['phone_mobile']);
102
103 $user_data[] = $list_user;
104 }
105
106 return $user_data;
107 }
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
static createWhereStatement(array $arr_usr_ids, array $arr_filter)
Returns the WHERE Part for the Queries using parameter $user_ids AND local variable $filters.