public function FeedsLdapQueryFetcherResult::getRaw in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_feeds/FeedsLdapQueryFetcher.inc \FeedsLdapQueryFetcherResult::getRaw()
- 7 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 28 - FeedsLdapQueryFetcher.
Class
- FeedsLdapQueryFetcherResult
- FeedsLdapQueryFetcherResult.
Code
public function getRaw() {
$results = [];
$count = 0;
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)) {
$count += $more_results['count'];
$results = array_merge($results, $more_results);
}
}
if ($count) {
$results['count'] = $count;
}
return $results;
}