2013-03-05
Klap-in
the function is now defined as:
retrieveUsers($start=0,$limit=-1,$filter=null)
where $filter can be:
array(
'user'=>'terma',
'name'=>'termb',
'email'=>'termc',
'grps'=>'termd'
)
$filter=null disables filtering at all, but when using more lines of $filter, the search is performed as an AND filter of these lines i.e user=terma AND name=termb AND etc etc.
i like to have for the bureaucracy plugin, the option to filter on more columns at the same time, that's applying a OR filter.
What is a good way to implement this?
My suggestion: add additional option to $filter:
- 'all'=>'terme', searches in all columns for given term.