Function __global->cns_member_external_linker

Definitions

sources/cns_members_action2.php

  • Finishing off of a member profile (such as for LDAP or httpauth, where a partial profile is automatically made, but needs completion).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type ID_TEXT No No required parameter N/A N/A The type of member profile we are finishing off
$username SHORT_TEXT No No required parameter N/A N/A The username for the member profile
$password SHORT_TEXT No No required parameter N/A N/A The password for the member profile
$email_check boolean No No True N/A N/A Whether to check for duplicated e-mail addresses
$email_address EMAIL No No Blank (empty string) N/A N/A Auto-detected e-mail address (blank: none)
$dob_day ?integer No No Null N/A N/A Auto-detected DOB day (null: unknown)
$dob_month ?integer No No Null N/A N/A Auto-detected DOB month (null: unknown)
$dob_year ?integer No No Null N/A N/A Auto-detected DOB year (null: unknown)
$timezone ?ID_TEXT No No Null N/A N/A Auto-detected Timezone (null: unknown)
$language ?ID_TEXT No No Null N/A N/A Auto-detected Language (null: unknown)
$avatar_url ?URLPATH No No Null N/A N/A The URL to the member's avatar (blank: none) (null: choose one automatically)
$photo_url URLPATH No No Blank (empty string) N/A N/A The URL to the member's photo (blank: none)

Returns

  • The member ID for the finished off profile
  • Type: MEMBER
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Finishing off of a member profile (such as for LDAP or httpauth, where a partial profile is automatically made, but needs completion).
 *
 * @param  ID_TEXT $type The type of member profile we are finishing off
 * @param  SHORT_TEXT $username The username for the member profile
 * @param  SHORT_TEXT $password The password for the member profile
 * @param  boolean $email_check Whether to check for duplicated e-mail addresses
 * @param  EMAIL $email_address Auto-detected e-mail address (blank: none)
 * @param  ?integer $dob_day Auto-detected DOB day (null: unknown)
 * @param  ?integer $dob_month Auto-detected DOB month (null: unknown)
 * @param  ?integer $dob_year Auto-detected DOB year (null: unknown)
 * @param  ?ID_TEXT $timezone Auto-detected Timezone (null: unknown)
 * @param  ?ID_TEXT $language Auto-detected Language (null: unknown)
 * @param  ?URLPATH $avatar_url The URL to the member's avatar (blank: none) (null: choose one automatically)
 * @param  URLPATH $photo_url The URL to the member's photo (blank: none)
 * @return MEMBER The member ID for the finished off profile
 */

function cns_member_external_linker(string $type, string $username, string $password, bool $email_check = true, string $email_address = '', ?int $dob_day = null, ?int $dob_month = null, ?int $dob_year = null, ?string $timezone = null, ?string $language = null, ?string $avatar_url = null, string $photo_url = '') : int