![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|
Library of common functions for permissions and groups. More...
Go to the source code of this file.
Functions | |
| GetUploadsFromFolder ($folder_pk) | |
| GetUploadsFromFolder_recurse ($folder_pk, &$uploads) | |
| AddUserToGroupArray ($GroupRow, &$GroupArray) | |
| Check if User is already in the $GroupArray. More... | |
| GetGroupUsers ($user_pk, $group_pk, &$GroupArray) | |
| Get all the users users of this group. More... | |
| GetUsersGroups ($user_pk='') | |
| Find all the groups a user belongs to. More... | |
| GetGroupArray ($user_pk) | |
| Get array of groups that this user has admin access to @depricated use UserDao::getAdminGroupMap() More... | |
| DeleteGroup ($group_pk) | |
| Delete a group. More... | |
Library of common functions for permissions and groups.
Definition in file common-perms.php.
| AddUserToGroupArray | ( | $GroupRow, | |
| & | $GroupArray | ||
| ) |
Check if User is already in the $GroupArray.
If not, add them. If they are, update their record with the highest permission granted to them.
| array | $GroupRow | Group row from DB | |
| [in,out] | array | &$GroupArray | Group array where user is to be added |
Definition at line 76 of file common-perms.php.
| DeleteGroup | ( | $group_pk | ) |
Delete a group.
| int | $group_pk | Group to be deleted |
Definition at line 213 of file common-perms.php.
| GetGroupArray | ( | $user_pk | ) |
Get array of groups that this user has admin access to @depricated use UserDao::getAdminGroupMap()
| int | $user_pk |
Definition at line 182 of file common-perms.php.
| GetGroupUsers | ( | $user_pk, | |
| $group_pk, | |||
| & | $GroupArray | ||
| ) |
Get all the users users of this group.
| int | $user_pk | Optional, if specified limit to single user | |
| int | $group_pk | Group id to look into | |
| [in,out] | array | &$GroupArray |
Definition at line 114 of file common-perms.php.
| GetUploadsFromFolder | ( | $folder_pk | ) |
Get all the uploads inside a given folder
| int | $folder_pk |
Definition at line 22 of file common-perms.php.
| GetUploadsFromFolder_recurse | ( | $folder_pk, | |
| & | $uploads | ||
| ) |
Get the upload ids of all uploads inside given folder.
| int | $folder_pk | ||
| [in,out] | array | $uploads | Array of upload_pk's. |
Definition at line 43 of file common-perms.php.
| GetUsersGroups | ( | $user_pk = '' | ) |
Find all the groups a user belongs to.
| int | $user_pk | Optional, defaults to current user |
Definition at line 150 of file common-perms.php.