1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Basic textfield argument to handle known ldap attributes
|
6
|
*/
|
7
|
class ldap_views_handler_argument extends views_handler_argument {
|
8
|
|
9
|
/**
|
10
|
* Build the query based upon the formula
|
11
|
*/
|
12
|
function query() {
|
13
|
if ($this->real_field == 'basedn' || $this->real_field == 'filter') {
|
14
|
$add_method = 'add_' . $this->real_field;
|
15
|
$this->query->$add_method($this->argument);
|
16
|
}
|
17
|
else {
|
18
|
$this->query->add_where(0, $this->real_field, $this->argument, '=');
|
19
|
}
|
20
|
}
|
21
|
}
|