Procedural File: BitPermUser.php
Source Location: /users/BitPermUser.php
Classes:
BitPermUser
Class that holds all information for a given user
Page Details:
$Header$
Lib for user administration, groups and permissions This lib uses pear so the constructor requieres Copyright (c) 2004 bitweaver.org Copyright (c) 2003 tikwiki.org Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. All Rights Reserved. See below for details and a complete list of authors. Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details $Id$
Tags:
Includes:
assignLevelPermissions [line 823]
void assignLevelPermissions(
array $pGroupId, array $pLevel, [array $pPackage = NULL])
|
|
assignLevelPermissions Assign the permissions of a given level to a given group
Tags:
Parameters
array |
$pGroupId |
Group we want to assign permissions to |
array |
$pLevel |
permission level we wish to assign from |
array |
$pPackage |
limit set of permissions to a given package |
assignPermissionToGroup [line 858]
TRUE assignPermissionToGroup(
$pPerm, array $pGroupId, array $perm)
|
|
assignPermissionToGroup
Tags:
Parameters
array |
$perm |
|
array |
$pGroupId |
|
|
$pPerm |
|
getGroupPermissions [line 759]
TRUE getGroupPermissions(
[ $pParamHash = NULL], array $pGroupId, string $pPackage, string $find, array $pSortMode)
|
|
getGroupPermissions
Tags:
Parameters
array |
$pGroupId |
Group id, if unset, all groups are returned |
string |
$pPackage |
permissions to give group, if unset, all permissions are returned |
string |
$find |
search for a particular permission |
array |
$pSortMode |
sort mode of return hash |
|
$pParamHash |
|
getGroupUserData [line 640]
array getGroupUserData(
array $pGroupId, array $pColumns)
|
|
getGroupUserData
Tags:
Parameters
array |
$pGroupId |
|
array |
$pColumns |
|
getPermissionPackages [line 846]
array getPermissionPackages(
)
|
|
getPermissionPackages Get a list of packages that have their own set of permissions
Tags:
getUnassignedPerms [line 695]
array getUnassignedPerms(
)
|
|
getUnassignedPerms
Tags:
hasPermission [line 723]
TRUE hasPermission(
array $pPerm)
|
|
hasPermission check to see if a user has a given permission
Tags:
Parameters
isAdmin [line 711]
TRUE isAdmin(
[array $pCheckTicket = ])
|
|
isAdmin
Tags:
Parameters
loadPermissions [line 667]
TRUE loadPermissions(
[ $pForceReload = FALSE])
|
|
loadPermissions
Tags:
Parameters
removePermissionFromGroup [line 876]
TRUE removePermissionFromGroup(
string $pPerm, numeric $pGroupId)
|
|
removePermissionFromGroup
Tags:
Parameters
string |
$pPerm |
Perm name |
numeric |
$pGroupId |
Group ID |
setPermissionOverride [line 910]
void setPermissionOverride(
$pPerm, [ $pValue = NULL])
|
|
Grant a single permission to a given value
Parameters
storeRegistrationChoice [line 892]
ADO storeRegistrationChoice(
mixed $pGroupMixed, [array $pValue = NULL])
|
|
storeRegistrationChoice
Tags:
Parameters
mixed |
$pGroupMixed |
A single group ID or an array of group IDs |
array |
$pValue |
Value you wish to store - use NULL to delete a value |
verifyPermission [line 740]
none verifyPermission(
$pPermission $pPermission, [ $pMsg = NULL])
|
|
verifyPermission check if a user has a given permission and if not it will display the error template and die()
Tags:
Parameters
$pPermission |
$pPermission |
value of a given permission |
|
$pMsg |
|
|