You are here

function LdapUserConf::__construct in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_user/LdapUserConf.class.php \LdapUserConf::__construct()
1 call to LdapUserConf::__construct()
LdapUserConfAdmin::__construct in ldap_user/LdapUserConfAdmin.class.php
1 method overrides LdapUserConf::__construct()
LdapUserConfAdmin::__construct in ldap_user/LdapUserConfAdmin.class.php

File

ldap_user/LdapUserConf.class.php, line 187

Class

LdapUserConf

Code

function __construct() {
  $this
    ->load();
  $this->provisionSidFromDirection[LDAP_USER_PROV_DIRECTION_TO_DRUPAL_USER] = $this->drupalAcctProvisionServer;
  $this->provisionSidFromDirection[LDAP_USER_PROV_DIRECTION_TO_LDAP_ENTRY] = $this->ldapEntryProvisionServer;
  $this->provisionsLdapEvents = array(
    LDAP_USER_EVENT_CREATE_LDAP_ENTRY => t('On LDAP Entry Creation'),
    LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY => t('On Synch to LDAP Entry'),
  );
  $this->provisionsDrupalEvents = array(
    LDAP_USER_EVENT_CREATE_DRUPAL_USER => t('On Drupal User Creation'),
    LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER => t('On Synch to Drupal User'),
  );
  $this->provisionsDrupalAccountsFromLdap = $this->drupalAcctProvisionServer && $this->drupalAcctProvisionServer && count(array_filter(array_values($this->drupalAcctProvisionTriggers))) > 0;
  $this->provisionsLdapEntriesFromDrupalUsers = $this->ldapEntryProvisionServer && $this->ldapEntryProvisionServer && count(array_filter(array_values($this->ldapEntryProvisionTriggers))) > 0;
  $this
    ->setSynchMapping(TRUE);
  $this->detailedWatchdog = config('ldap_help.settings')
    ->get('watchdog_detail');
}