public static function SimpleLdap::ldap_get_entries in Simple LDAP 7.2
Same name and namespace in other branches
- 7 SimpleLdap.class.php \SimpleLdap::ldap_get_entries()
Wrapper function for ldap_get_entries().
@throw SimpleLdapException
Parameters
resource $link_identifier: An LDAP link identifier.
resource $result_identifier: An LDAP search result identifier.
Return value
array An array of LDAP entries.
1 call to SimpleLdap::ldap_get_entries()
- SimpleLdapServer::search in ./
SimpleLdapServer.class.php - Search the LDAP server.
File
- ./
SimpleLdap.class.php, line 690 - Class defining base Simple LDAP functionallity.
Class
- SimpleLdap
- Simple LDAP class.
Code
public static function ldap_get_entries($link_identifier, $result_identifier) {
// Devel debugging.
if (variable_get('simple_ldap_devel', FALSE)) {
dpm(__FUNCTION__);
}
// Wrapped function call.
$return = @ldap_get_entries($link_identifier, $result_identifier);
// Debugging.
if (variable_get('simple_ldap_debug', FALSE)) {
$message = __FUNCTION__ . '($link_identifier = @link_identifier, $result_identifier = @result_identifier) returns @return';
$variables = array(
'@link_identifier' => print_r($link_identifier, TRUE),
'@result_identifier' => print_r($result_identifier, TRUE),
'@return' => print_r($return, TRUE),
);
watchdog('simple_ldap', $message, $variables, WATCHDOG_DEBUG);
}
// Error handling.
if ($return === FALSE) {
throw new SimpleLdapException($link_identifier);
}
return $return;
}