6.0.0-beta1
8/15/25

[#1715] Group_hooks class updates
Summary Group_hooks class updates
Queue Horde Framework Packages
Type Enhancement
State No Feedback
Priority 2. Medium
Owners
Requester erudd (at) netfor (dot) com
Created 04/07/2005 (7435 days ago)
Due
Updated 11/09/2008 (6123 days ago)
Assigned
Resolved 11/09/2008 (6123 days ago)
Milestone
Patch No

History
11/09/2008 02:22:17 AM Chuck Hagenbuch State ⇒ No Feedback
 
09/23/2005 03:42:29 PM Chuck Hagenbuch Comment #7
State ⇒ Stalled
Reply to this comment
I'm just going to stall the ticket for now; as soon as you have the 
patches we'll un-stall it and look at them. Thanks!
09/23/2005 03:31:45 PM erudd (at) netfor (dot) com Comment #6 Reply to this comment
Yes I do plan on updating these packages. I hope to have time to 
update them in the next few weeks. So keep the ticket open.
09/23/2005 01:02:58 AM Chuck Hagenbuch Comment #5 Reply to this comment
Ping - you still intend to update these patches?
08/07/2005 11:12:51 AM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
I recently fixed some issues with the hooks Group driver, can you 
update your patch, and make sure the Joel's ideas are covered too?
04/08/2005 03:09:43 PM erudd (at) netfor (dot) com Comment #3 Reply to this comment
Looks like that patch does the same thing as mine,(just different hook 
names)  except I also ifx the bug in the getGroupMemberships function 
where you need to return the group ID as the key in the return array.
04/08/2005 10:14:56 AM Jan Schneider New Attachment: conf.hooks.php Download
 
04/08/2005 10:14:31 AM Jan Schneider Comment #2
State ⇒ Accepted
New Attachment: group.hooks.diff Download
Reply to this comment
I had this old mail in my inbox:



Zitat von Joel Vandal <jvandal@infoteck.qc.ca>:

[Show Quoted Text - 9 lines]
04/07/2005 08:39:39 PM erudd (at) netfor (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ Group_hooks class updates
Queue ⇒ Horde Framework Packages
New Attachment: group_hooks.diff Download
State ⇒ New
Reply to this comment
Attached is a diff off of the horde 3.0.4 Horde/Group/hooks.php that 
adds 3 new hooks and fixes (as much as possible) the 
getGroupMemberships function.



_group_hook function  takes $user and $group

is a better replacement for the _group_hook_GroupName hooks. part of 
the reasons are explained in the patch itself (due to limitations of 
php).. The other reason is it's easier for a dynamic list of groups 
(ie pulling in ldap groups).



_group_members_hook takes $group

This hook will return an array of all the users in a group (merged 
with the datatree group list).  AFACT this would anly be userful for 
seeing the groups in the group list.



_group_memberships_hook takes $user

This hook is the second half of the replacement for the 
_group_hook_GroupName and returns a list of groups that a user belongs 
to (flat array with :'s in the group names).





There are several fixes to the class as well, the getGroupMemberships 
function requires an index array of groupnames in the form of

   groupID => 'groupname'



so my _group_memberships_hook addon correctly returns the same "style" 
infomation as the getGroupMemberships function in the datatree 
version.  I also patched the _group_hook_GroupName loop to place the 
groupID in the return array as well, otherwise the user would not have 
the correct rights


Saved Queries