Exemplo n.º 1
0
 /**
  * Add the given itemid, groupid, permission mapping
  *
  * @param int $itemId the id of the GalleryItem
  * @param int $groupId the id of the GalleryGroup
  * @param string $permission the permission id
  * @param boolean $applyToChildren (optional) whether or not this call applies to child items
  * @return GalleryStatus a status code
  */
 function addGroupPermission($itemId, $groupId, $permission, $applyToChildren = false)
 {
     MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryPermissionHelper_advanced.class');
     return GalleryPermissionHelper_advanced::addGroupPermission($itemId, $groupId, $permission, $applyToChildren);
 }