You are here

public function LdapServer::countEntries in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_servers/LdapServer.class.php \LdapServer::countEntries()

Parameters

$ldap_result: as ldap link identifier

Return value

FALSE on error or number of entries. (if 0 entries will return 0)

2 calls to LdapServer::countEntries()
LdapServer::pagedLdapQuery in ldap_servers/LdapServer.class.php
Execute a paged ldap query and return entries as one aggregated array.
LdapServer::search in ldap_servers/LdapServer.class.php
Perform an LDAP search.
1 method overrides LdapServer::countEntries()
LdapServerTest::countEntries in ldap_test/LdapServerTest.class.php

File

ldap_servers/LdapServer.class.php, line 522
Defines server classes and related functions.

Class

LdapServer
LDAP Server Class.

Code

public function countEntries($ldap_result) {
  return ldap_count_entries($this->connection, $ldap_result);
}