leaf through users

Matthias Nothhaft <[email protected]> Sat, 28 Jan 2006 19:36:40 +0100
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Hi,

I would like to view an edit form with data from user X and prev/next
buttons.

The admin user who is currently logged may only see/edit users with
perm_type <= current user

I have a 'createtime' in the auth_users table and want to get the
prev/next IDs by comparing this time with the current record.

I tried to getUsers() but without success... :-(

$filter = array(
    'auth_container_name' => $this->_authContainer,
    'perm_type' => array('op' => '<=', 'value' => $current_perm_type,
    'createtime' => array('op' => '>' 'value' => $user['createtime']
);

This gives me: Couldn't create the query, reason: not all fields
(createtime) could be linked to a table (perm_users, userrights, rights,
groupusers)

If I try the 'auth' container I cannot filter by 'perm_type'.


Is there a chance to get it work with LiveUser or should I write my own
queries for this purpose? ;-)


Regards,
Matthias