25 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
27 $result->response =
new stdClass();
28 $result->response->results = array();
29 if (strlen($a_str) < 3)
34 include_once
'./Services/User/classes/class.ilUserAccountSettings.php';
37 include_once
'./Services/User/classes/class.ilUserFilter.php';
38 $query =
"SELECT login, firstname, lastname FROM usr_data ".
40 $ilDB->like(
"login",
"text", $a_str.
"%").
" OR ".
41 $ilDB->like(
"firstname",
"text", $a_str.
"%").
" OR ".
42 $ilDB->like(
"lastname",
"text", $a_str.
"%").
45 $set = $ilDB->query(
$query);
49 $set = $ilDB->query(
"SELECT login, firstname, lastname FROM usr_data WHERE ".
50 $ilDB->like(
"login",
"text", $a_str.
"%").
" OR ".
51 $ilDB->like(
"firstname",
"text", $a_str.
"%").
" OR ".
52 $ilDB->like(
"lastname",
"text", $a_str.
"%").
57 while (($rec = $ilDB->fetchAssoc($set)) && $cnt < $max)
59 $result->response->results[$cnt] =
new stdClass();
60 $result->response->results[$cnt]->login = $rec[
"login"];
61 $result->response->results[$cnt]->firstname = $rec[
"firstname"];
62 $result->response->results[$cnt]->lastname = $rec[
"lastname"];