Detailed Description
- Author
- Nadia Krzywon
- Version
- $Id$
Definition at line 9 of file class.ilMailAddressbook.php.
Constructor & Destructor Documentation
ilMailAddressbook::__construct |
( |
| ) |
|
Member Function Documentation
ilMailAddressbook::getAddressbookAsync |
( |
|
$search | ) |
|
Definition at line 20 of file class.ilMailAddressbook.php.
References $ilDB, $query, $result, $row, and DB_FETCHMODE_OBJECT.
{
$ilDB->setLimit(0,20);
'SELECT DISTINCT
abook.login login,
abook.firstname firstname,
abook.lastname lastname
FROM addressbook abook
WHERE abook.user_id = '.$ilDB->quote($this->user_id, 'integer').'
AND ( '. $ilDB->like('abook.login', 'text', $search).'
OR '. $ilDB->like('abook.firstname', 'text', $search).'
OR '. $ilDB->like('abook.lastname', 'text', $search).'
)';
$query_res = $ilDB->query(
$query);
$result->response =
new stdClass();
$result->response->results = array();
{
$tmp = new stdClass();
$tmp->login =
$row->login;
$tmp->firstname =
$row->firstname;
$tmp->lastname =
$row->lastname;
$result->response->results[] = $tmp;
}
}
Field Documentation
ilMailAddressbook::$user_id = null |
|
private |
The documentation for this class was generated from the following file: