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 19
__construct()
No description
at line 395
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 37
mixed
add_global_group($module_name, $instance_id, $group_id, $title, string $security_type = 'public')
No description
at line 353
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 521
void
clear_group_members(int $gid)
Update Memberlist of security Group
at line 539
array
get_accessible_groups(bool|int $user_id = false)
deprecated
deprecated
Get Groups of this user which are accessible
at line 557
array
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 643
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 682
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 122
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 193
array
get_global_group_meta(int $group_id)
Get Metainformation Global Group ID for your global ID
at line 214
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 283
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 141
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 174
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 711
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 24
init()
No description
at line 426
remove_follow_user(int $group_security_id, int $user_id)
Remove user as follower for this group
at line 102
remove_global_group(int $gid)
Remove security Group
at line 485
remove_group_member(int $gid, int $user_id = false, $set_follow_status = true)
Remove Member from security Group
at line 330
remove_groups(int $gid)
Remove security Group
at line 319
remove_local_group(string $instance_id, int $group_id)
Remove security Group
at line 62
int|mixed
update_global_group($gid, $module_name, $instance_id, $group_id, $title, string $security_type = 'public')
No description
at line 474
mixed
update_group_member(int $gid, int $user_id = false, array $role_ids = array(), bool $set_follow_status = false)
Add Member to security Group