Skip to content

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!

icms_ipf_permission_Handler

IcmsPermission

This class easily manage the permission affected to an IcmsPersistablebject

  • Class name: icms_ipf_permission_Handler
  • Namespace:

Properties

$handler

public \unknown_type $handler
  • Visibility: public

Methods

__construct

mixed icms_ipf_permission_Handler::__construct(\unknown_type handler)

Constructor

  • Visibility: public

Arguments

  • handler unknown_type

getGrantedGroups

array icms_ipf_permission_Handler::getGrantedGroups(mixed gperm_name, int id)

Returns permissions for a certain type

  • Visibility: public

Arguments

  • gperm_name mixed
  • id int - <p>id of the item (forum, topic or possibly post) to get permissions for</p>

getGrantedGroupsForIds

mixed icms_ipf_permission_Handler::getGrantedGroupsForIds(\arr item_ids_array, \str gperm_name)
  • Visibility: public

Arguments

  • item_ids_array arr
  • gperm_name str

getGrantedItems

array icms_ipf_permission_Handler::getGrantedItems(mixed gperm_name, int id)

Returns permissions for a certain type

  • Visibility: public

Arguments

  • gperm_name mixed
  • id int - <p>id of the item (forum, topic or possibly post) to get permissions for</p>

storeAllPermissionsForId

mixed icms_ipf_permission_Handler::storeAllPermissionsForId(int id)
  • Visibility: public

Arguments

  • id int

saveItem_Permissions

bool icms_ipf_permission_Handler::saveItem_Permissions(array groups, mixed itemid, string perm_name)

Saves permissions for the selected category

saveCategory_Permissions()

  • Visibility: public

Arguments

  • groups array - <p>: group with granted permission</p>
  • itemid mixed
  • perm_name string - <p>: name of the permission</p>

accessGranted

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

Arguments

  • gperm_name string - <p>name of the permission to test</p>
  • gperm_itemid int - <p>id of the object to check</p>
Clone this wiki locally