You are here

public function FeedsLdapQueryFetcherResult::getRaw in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_feeds/FeedsLdapQueryFetcher.inc \FeedsLdapQueryFetcherResult::getRaw()
  2. 7.2 ldap_feeds/FeedsLdapQueryFetcher.inc \FeedsLdapQueryFetcherResult::getRaw()

Overrides parent::getRaw();

Overrides FeedsFetcherResult::getRaw

1 call to FeedsLdapQueryFetcherResult::getRaw()
FeedsLdapQueryFetcherResult::__construct in ldap_feeds/FeedsLdapQueryFetcher.inc
Constructor.

File

ldap_feeds/FeedsLdapQueryFetcher.inc, line 29
FeedsLdapQueryFetcher

Class

FeedsLdapQueryFetcherResult
FeedsLdapQueryFetcherResult

Code

public function getRaw() {
  $results = array();
  foreach ($this->query_ids as $i => $query_id) {
    $ldapQuery = ldap_query_get_queries($query_id, 'enabled', TRUE);
    $more_results = $ldapQuery
      ->query();
    if (is_array($more_results)) {
      $results = array_merge($results, $more_results);
    }
  }
  return $results;
}