PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #269

getAllUsers additional filters

Details

Submitted2003-11-18 12:08 UTC
Fromsmith at backendmedia dot com
Assignedlsmith
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2003-11-18 12:08 UTC] smith at backendmedia dot com

Description:
------------
this is just a feature request to improve the filtering in the getAllUsers methods in the admin containers.

Here is my current API concept for the admin part:
/**
* Gets all users with handle, passwd, auth_user_id,
* lastlogin, is_active and individual rights.
*
* The array will look like this:
* <code>
* $userData[0]['auth_user_id'] = 'wujha433gawefawfwfiuj2ou9823r98h';
* ['handle'] = 'myLogin';
* ['passwd'] = 'd346gs2gwaeiuhaeiuuweijfjuwaefhj';
* ['lastlogin'] = 1254801292; (Unix timestamp)
* ['is_active'] = 1; (1 = yes, 0 = no)
* </code>
*
* @param boolean $rekey specifies if the auth_user_id column should be
used as the keys in the result array
* @param array $options associtaive array
* 'where_auth_user_id' = [AUTH_USER_ID]
* @access public
* @return mixed Array with user data or MDB error.
*/

and for the perm part:

/**
* Gets all perm_user_id, type, container and rights
*
* The array will look like this:
* <code>
* $userData[0]['perm_user_id'] = 1;
* ['type'] = 1;
* ['container'] = '';
* ['rights'] = array(); // the array returned by getRights()
* </code>
*
* @access public
* @param boolean If true the rights for each user will be retrieved.
* @param boolean $rekey specifies if the perm_user_id column should be
used as the keys in the result array
* @param array $options associtaive array
* 'where_auth_user_id' = array([AUTH_USER_ID],[AUTH_CONTAINER_NAME])
* 'where_perm_user_id' = [PERM_USER_ID],
* 'where_group_id' = [GROUP_ID],
* 'where_right_id' = [RIGHT_ID],
* 'where_area_id' = [AREA_ID],
* 'where_application_id' = [APPLICATION_ID],
* 'with_areas' = [BOOLEAN],
* 'with_applications' = [BOOLEAN]
* @return mixed Array with user data or error object.
* @see LiveUser_Admin_Perm_DB_Common::getRights()
*/