function _ldap_query_get_simpletest_queries in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_query/ldap_query.inc \_ldap_query_get_simpletest_queries()
see ldap_query_get_servers()
1 call to _ldap_query_get_simpletest_queries()
- ldap_query_get_queries in ldap_query/
ldap_query.module - return ldap query objects
File
- ldap_query/
ldap_query.inc, line 49
Code
function _ldap_query_get_simpletest_queries($qid, $type, $flatten, $reset = TRUE) {
require_once 'tests/LdapQueryTest.class.php';
$queries['all'] = LdapQueryTest::getLdapQueryObjects('all', 'all');
foreach ($queries['all'] as $_sid => $ldap_query) {
if ($ldap_query->status == 1) {
$queries['enabled'][$_qid] = $ldap_query;
}
}
if ($sid) {
if (!isset($queries[$type][$qid])) {
return FALSE;
}
return $flatten ? $queries[$type][$qid] : $queries[$type];
}
if (isset($queries[$type])) {
return $queries[$type];
}
}