private function LdapQuery::buildLdapFilter in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_query/src/Plugin/views/query/LdapQuery.php \Drupal\ldap_query\Plugin\views\query\LdapQuery::buildLdapFilter()
Collates Views arguments and filters for a modified query.
Parameters
string $standardFilter: The filter in LDAP query which gets overwritten.
Return value
string Combined string.
1 call to LdapQuery::buildLdapFilter()
- LdapQuery::execute in ldap_query/
src/ Plugin/ views/ query/ LdapQuery.php - Execute the query.
File
- ldap_query/
src/ Plugin/ views/ query/ LdapQuery.php, line 303
Class
- LdapQuery
- Views query plugin for an SQL query.
Namespace
Drupal\ldap_query\Plugin\views\queryCode
private function buildLdapFilter(string $standardFilter) : string {
$searchFilter = $this
->buildConditions();
if (!empty($searchFilter)) {
$finalFilter = '(&' . $standardFilter . $searchFilter . ')';
}
else {
$finalFilter = $standardFilter;
}
return $finalFilter;
}