You are here

protected function SimpleLdap::getDefaultDeref in Simple LDAP 8

Helper function to keep constant out of the function parameter signature.

Parameters

$deref:

Return value

int

3 calls to SimpleLdap::getDefaultDeref()
SimpleLdap::ldapList in src/SimpleLdap.php
Wrapper function for ldap_list().
SimpleLdap::ldapRead in src/SimpleLdap.php
SimpleLdap::ldapSearch in src/SimpleLdap.php
Wrapper function for ldap_search().

File

src/SimpleLdap.php, line 491

Class

SimpleLdap
A wrapper for PHP's LDAP functions, with associated helper methods.

Namespace

Drupal\simple_ldap

Code

protected function getDefaultDeref($deref) {
  if ($deref == NULL) {
    return LDAP_DEREF_NEVER;
  }
  return $deref;
}