Thursday 01 September 2005 1:45:56 pm
Heya All! I'm currently developing an extension which basically loops through a list of users that are grouped in a userGroup, now.. the way I get the ID of this user group is:
$db =& eZDB::instance();
$groupName = "SuperUserList";
$groupQuery = "SELECT ezcontentobject_tree.node_id
FROM ezcontentobject, ezcontentobject_tree
WHERE ezcontentobject.name='$groupName'
AND ezcontentobject.id=ezcontentobject_tree.contentobject_id";
$groupObject = $db->arrayQuery( $groupQuery );
The following question remains: How can I loop through the users of the groups with the ID's provided by the query above? I know I'm close, I just don't know how... Thanks, I'm stuck!
Clemens ps: or can I use ::fetchList..? Can anyone explain to me what the best method is?
|