[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Group/ -> hooks.php (sommaire)

(pas de description)

Poids: 114 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Group_hooks:: (5 méthodes):
  Group_hooks()
  getGroupMemberships()
  userIsInGroup()
  hasHook()
  _getGroupHookName()


Classe: Group_hooks  - X-Ref

The Group_hooks:: class provides the Horde groups system with the
addition of adding support for hook functions to define if a user
is in a group.

$Horde: framework/Group/Group/hooks.php,v 1.7.2.10 2006/01/01 21:28:19 jan Exp $

Copyright 2003-2006 Jason Rust <jrust@rustyparts.com>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Group_hooks()   X-Ref
Constructor.


getGroupMemberships($user, $parentGroups = false)   X-Ref
Get a list of every group that $user is in.

param: string  $user          The user to get groups for.
param: boolean $parentGroups  Also return the parents of any groups?
return: array  An array of all groups the user is in.

userIsInGroup($user, $gid, $subgroups = true)   X-Ref
Say if a user is a member of a group or not.

param: string  $user       The name of the user.
param: integer $gid        The ID of the group.
param: boolean $subgroups  Return true if the user is in any subgroups
return: boolean

hasHook($name)   X-Ref
Determines if a group has a hook associated with it.

param: string $name  The group name.
return: boolean  True if the group has a hook, false otherwise

_getGroupHookName($name)   X-Ref
Returns the name of the hook function.

param: string $name  The group name.
return: string  The function name for the hook for this group



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7