-
Notifications
You must be signed in to change notification settings - Fork 35
icms_ipf_permission_Handler
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
IcmsPermission
This class easily manage the permission affected to an IcmsPersistablebject
- Class name: icms_ipf_permission_Handler
- Namespace:
public \unknown_type $handler
- Visibility: public
mixed icms_ipf_permission_Handler::__construct(\unknown_type handler)
Constructor
- Visibility: public
- handler unknown_type
array icms_ipf_permission_Handler::getGrantedGroups(mixed gperm_name, int id)
Returns permissions for a certain type
- Visibility: public
- gperm_name mixed
- id int - <p>id of the item (forum, topic or possibly post) to get permissions for</p>
mixed icms_ipf_permission_Handler::getGrantedGroupsForIds(\arr item_ids_array, \str gperm_name)
- Visibility: public
- item_ids_array arr
- gperm_name str
array icms_ipf_permission_Handler::getGrantedItems(mixed gperm_name, int id)
Returns permissions for a certain type
- Visibility: public
- gperm_name mixed
- id int - <p>id of the item (forum, topic or possibly post) to get permissions for</p>
mixed icms_ipf_permission_Handler::storeAllPermissionsForId(int id)
- Visibility: public
- id int
bool icms_ipf_permission_Handler::saveItem_Permissions(array groups, mixed itemid, string perm_name)
Saves permissions for the selected category
saveCategory_Permissions()
- Visibility: public
- groups array - <p>: group with granted permission</p>
- itemid mixed
- perm_name string - <p>: name of the permission</p>
bool icms_ipf_permission_Handler::accessGranted(string gperm_name, int gperm_itemid)
Checks if the user has access to a specific permission on a given object
- Visibility: public
- gperm_name string - <p>name of the permission to test</p>
- gperm_itemid int - <p>id of the object to check</p>