17 $this->user_id = $ilUser->getId();
24 $ilDB->setLimit(0,20);
29 abook.firstname firstname,
30 abook.lastname lastname
31 FROM addressbook abook
32 WHERE abook.user_id = '.$ilDB->quote($this->user_id,
'integer').
'
33 AND ( '. $ilDB->like(
'abook.login',
'text', $search).
'
34 OR '. $ilDB->like(
'abook.firstname',
'text', $search).
'
35 OR '. $ilDB->like(
'abook.lastname',
'text', $search).
'
38 $query_res = $ilDB->query(
$query);
41 $result->response =
new stdClass();
42 $result->response->results = array();
46 $tmp =
new stdClass();
47 $tmp->login =
$row->login;
48 $tmp->firstname =
$row->firstname;
49 $tmp->lastname =
$row->lastname;
50 $result->response->results[] = $tmp;