- Author
- Nadia Krzywon
- Version
- $Id$
Definition at line 9 of file class.ilMailAddressbook.php.
◆ __construct()
ilMailAddressbook::__construct |
( |
| ) |
|
◆ getAddressbookAsync()
ilMailAddressbook::getAddressbookAsync |
( |
|
$search | ) |
|
Definition at line 20 of file class.ilMailAddressbook.php.
References $query, $result, $row, and DB_FETCHMODE_OBJECT.
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);
44 $tmp =
new stdClass();
45 $tmp->value =
$row->login;
48 if(
$row->firstname &&
$row->lastname)
50 $label .=
" [" .
$row->lastname .
", " .
$row->firstname .
"]";
const DB_FETCHMODE_OBJECT
◆ $user_id
ilMailAddressbook::$user_id = null |
|
private |
The documentation for this class was generated from the following file: