Re: Guide to filters?

Lukas Smith <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Organization BackendMedia GbR
Message-ID <[email protected]>
Jan Bolmeson wrote:
> Thank you for the exhaustive answer... :)
> 
> But hence if I understood it right - there is no way to use
> perm->getRights() with filter so it corresponds to the following sql:
> 
> SELECT 
> lu.area_id, 
> area_define_name, 
> right_id, 
> right_define_name 
> FROM liveuser_rights JOIN liveuser_areas AS lu ON lu.area_id =
> liveuser_rights.area_id

the following code should do more or less what you want .. it will not 
however use the new ansi join syntax, but more the old join syntax

$luadmin->perm->getAreas(
  'fields' => array('area_id', 'aread_define_name', 'right_id', 
'right_define_name')
);


regards,
Lukas Smith
[email protected]
_______________________________
   BackendMedia
   www.backendmedia.com
   [email protected]

   Linn Zwoch Smith GbR
   Pariser Str. 44
   D-10707 Berlin

   Tel +49 30 83 22 50 00
   Fax +49 30 83 22 50 07
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.