public function Server::countEntries in Lightweight Directory Access Protocol (LDAP) 8.3
Count LDAP entries.
Parameters
resource $ldap_result: The LDAP link identifier.
Return value
int|bool Return false on error or number of entries, if 0 entries will return 0.
2 calls to Server::countEntries()
- Server::pagedLdapQuery in ldap_servers/
src/ Entity/ Server.php - Execute a paged LDAP query and return entries as one aggregated array.
- Server::search in ldap_servers/
src/ Entity/ Server.php - Perform an LDAP search.
File
- ldap_servers/
src/ Entity/ Server.php, line 413
Class
- Server
- Defines the Server entity.
Namespace
Drupal\ldap_servers\EntityCode
public function countEntries($ldap_result) {
return ldap_count_entries($this->connection, $ldap_result);
}