Re: Filtering problems with getUsers

Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
On 23/06/2005, at 10:04 PM, Lukas Smith wrote:
>>
>
> I really need to write a guide to filtering ..
>
> anyways go through the admin example 1. it shows off most ways in 
> which you can filter. suffice it to say you can filter using in 
> statements, any comparision operator. however you can only AND 
> multiple filters.
>
> aside from that you can choose the fields you want returned
> and you can choose if you want a single value, column or row .. or 
> even all the data (which is the default).
> if you get all data you can choose to have the first column as the key 
> in the first dimension etc etc.
>
> finally with the "with" key you can fetch additional data about rows 
> you have fetched.
>
>

I found this filter hidden within grouprights, would be nice for an 
example for user espeically for those creating frontends, and want to 
display, groups, areas and rights for a selected user :\

$params = array(
     'fields' => array(
         'right_id',
         'right_define_name',
     ),
     'with' => array(
         'group_id' => array(
             'fields' => array(
                 'group_id'
             ),
         ),
     ),
     'filters' => array(
         'group_id' => $groups[$group]['group_id']
     ),
     'limit' => 10,
     'offset' => 0,
);

Its still not clear whether there is already a wrapper for getGroups to 
return an array for building list menus with ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.