You are here

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

Same name and namespace in other branches
  1. 7.2 ldap_feeds/FeedsDrupalUserLdapEntryFetcher.inc \FeedsDrupalUserLdapEntryFetcherResult::__construct()
  2. 7 ldap_feeds/FeedsDrupalUserLdapEntryFetcher.inc \FeedsDrupalUserLdapEntryFetcherResult::__construct()

Constructor.

File

ldap_feeds/FeedsDrupalUserLdapEntryFetcher.inc, line 20
FeedsDrupalUserLdapEntryFetcher

Class

FeedsDrupalUserLdapEntryFetcherResult

Code

public function __construct($source_config) {
  $this->availableDrupalUserAttributes = ldap_feeds_drupal_user_attributes();
  $this->filterLdapAuthenticated = isset($source_config['filterLdapAuthenticated']) ? $source_config['filterLdapAuthenticated'] : LDAP_FEEDS_DRUPAL_USER_FETCHER_FILTER_AUTHENTICATED;
  $this->filterRoles = isset($source_config['filterRoles']) ? $source_config['filterRoles'] : LDAP_FEEDS_DRUPAL_USER_FETCHER_FILTER_ROLES;
  parent::__construct('');
  $this->ldap_result = $this
    ->getRaw();
  return $this->ldap_result;
}