ldap_views_handler_argument.inc in Lightweight Directory Access Protocol (LDAP) 8.2
Same filename and directory in other branches
Basic textfield argument to handle known ldap attributes
File
ldap_views/handlers/ldap_views_handler_argument.incView source
<?php
/**
* @file
* Basic textfield argument to handle known ldap attributes
*/
class ldap_views_handler_argument extends views_handler_argument {
/**
* Build the query based upon the formula
*/
function query() {
if ($this->real_field == 'basedn' || $this->real_field == 'filter') {
$add_method = 'add_' . $this->real_field;
$this->query
->{$add_method}($this->argument);
}
else {
$this->query
->add_where(0, $this->real_field, $this->argument, '=');
}
}
}
Classes
Name | Description |
---|---|
ldap_views_handler_argument | @file Basic textfield argument to handle known ldap attributes |