Function __global->cns_member_cnsid_to_ldapcn

Definitions

sources/cns_ldap.php

  • Find the LDAP username for a site member-ID.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id MEMBER No No required parameter N/A N/A The site member-ID

Returns

  • The username (null: none)
  • Type: ?SHORT_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the LDAP username for a site member-ID.
 *
 * @param  MEMBER $id The site member-ID
 * @return ?SHORT_TEXT The username (null: none)
 */

function cns_member_cnsid_to_ldapcn(int $id) : ?string