You are here

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

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

Parameters

$ldap_result: as ldap link identifier

Return value

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

Overrides LdapServer::countEntries

File

ldap_test/LdapServerTest.class.php, line 364
Simpletest ldapServer class for testing without an actual ldap server.

Class

LdapServerTest

Code

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