GroupSecurity
class GroupSecurity
Methods
No description
Add user as follower for this group
No description
Add Member to security Group
Update Memberlist of security Group
Get Groups of this user which are accessible
Determine the group_security_ids for a specific resource in a grouped module
retruns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
retruns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
Get Global Group ID for your local ID (using your group module instance, e.g. groups or groupizer)
Get Metainformation Global Group ID for your global ID
Get Global Group ID for your local ID (using your grouped instance, e.g. forum) Function will traverse parent contexts and return the first global group found
Get LOCAL Group ID for your group_securiy_id (using your grouped instance, e.g. forum)
Get local Group ID for your global group_security_id (using your group module instance, e.g. groups or groupizer)
Get Metainformation Global Group ID for your local ID (using your group module instance, e.g. groups or groupizer)
Returns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
No description
Remove user as follower for this group
Remove security Group
Remove Member from security Group
Remove security Group
Remove security Group
No description
Add Member to security Group
Details
at line 18
__construct()
No description
at line 394
add_follow_user(int $group_security_id, bool|int $user_id = false, string $status = Follows::STATUS_FOLLOW)
Add user as follower for this group
at line 36
mixed
add_global_group($module_name, $instance_id, $group_id, $title, string $security_type = 'public')
No description
at line 352
mixed
add_group_member(int $gid, int $user_id = false, array $role_ids = array(), bool $set_follow_status = true)
Add Member to security Group
at line 520
void
clear_group_members(int $gid)
Update Memberlist of security Group
at line 538
array
get_accessible_groups(bool|int $user_id = false, array|bool $filter = false)
Get Groups of this user which are accessible
at line 576
int[]
get_accessible_groups_by_policycheck(string $policy_instance = 'system', string $policy_name = 'page_accessible', string $policy_value = null, int $user_id = null, string $group_instance_id = null)
Determine the group_security_ids for a specific resource in a grouped module
at line 650
array
get_available_roles_for_global_group(int $gid)
retruns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
at line 689
array
get_available_users_for_global_group(int $gid, $include_roles = false)
retruns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
at line 121
int
get_global_group(string $instance_id, int $group_id, bool $usecache = true)
Get Global Group ID for your local ID (using your group module instance, e.g. groups or groupizer)
at line 192
array
get_global_group_meta(int $group_id)
Get Metainformation Global Group ID for your global ID
at line 213
int
get_instance_global_group(string $instance_id, int $group_id)
Get Global Group ID for your local ID (using your grouped instance, e.g. forum) Function will traverse parent contexts and return the first global group found
at line 282
int
get_instance_local_group(string $instance_id, int $group_security_id)
Get LOCAL Group ID for your group_securiy_id (using your grouped instance, e.g. forum)
at line 140
int
get_local_group(string $instance_id, int $group_security_id)
Get local Group ID for your global group_security_id (using your group module instance, e.g. groups or groupizer)
at line 173
array
get_local_group_meta(string $instance_id, int $group_id)
Get Metainformation Global Group ID for your local ID (using your group module instance, e.g. groups or groupizer)
at line 718
int[]|false
get_members_for_global_group(int $gid)
Returns an array of all available role ids if detectable detectable means that the gid contains to a instance of the type group (other will come e.g. multitenant)
at line 23
init()
No description
at line 425
remove_follow_user(int $group_security_id, int $user_id)
Remove user as follower for this group
at line 101
remove_global_group(int $gid)
Remove security Group
at line 484
remove_group_member(int $gid, int $user_id = false, $set_follow_status = true)
Remove Member from security Group
at line 329
remove_groups(int $gid)
Remove security Group
at line 318
remove_local_group(string $instance_id, int $group_id)
Remove security Group
at line 61
int|mixed
update_global_group($gid, $module_name, $instance_id, $group_id, $title, string $security_type = 'public')
No description
at line 473
mixed
update_group_member(int $gid, int $user_id = false, array $role_ids = array(), bool $set_follow_status = false)
Add Member to security Group