Filtering problems with getUsers
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Hi i'm prob trying to push the boundaries here, but what i am trying to
achieve is with getUsers obtain the groups the user is joined to so i
can create a groups muitiple list form and have them selected in the
list. Now I cant see any possible way to do this.
I have run into problems building a menu from getGroups, what it
returns is a heap of fields aswell as its in a 2-dimensional array here
is what I have to do at the moment to preformat the array to build a
quickform list with, the preg_replace is to format the define_name from
ADMIN_AREA to Admin Area, it would be nice if there was also a title
group areas, groups and rights etc ..
$groups = $lu->admin->getGroups();
foreach($groups as $key=>$value) {
$group[$value['group_id']] = ucwords(strtolower(preg_replace("/_/","
",$value['group_define_name'])));
}
Now my other issue I have encountered is I would like to filter
getRights with more than one area id ie 1,2 , so it will only contain
the rights joined to those areas, I cant work it out :\ Lemme know.