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 $set = $ilDB->query(
"SELECT login, firstname, lastname FROM usr_data WHERE ".
35 $ilDB->like(
"login",
"text", $a_str.
"%").
" OR ".
36 $ilDB->like(
"firstname",
"text", $a_str.
"%").
" OR ".
37 $ilDB->like(
"lastname",
"text", $a_str.
"%").
41 while (($rec = $ilDB->fetchAssoc($set)) && $cnt < $max)
43 $result->response->results[$cnt] =
new stdClass();
44 $result->response->results[$cnt]->login = $rec[
"login"];
45 $result->response->results[$cnt]->firstname = $rec[
"firstname"];
46 $result->response->results[$cnt]->lastname = $rec[
"lastname"];