Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_ipf_permission_Handler
  • Overview
  • Package
  • Class

Class icms_ipf_permission_Handler

Package: Ipf\Permission
Category: ICMS
Copyright: The ImpressCMS Project http://www.impresscms.org/
License: GNU General Public License (GPL)
Author: marcan marcan@impresscms.org
Located at ipf/permission/Handler.php
Methods summary
public
# __construct( unknown_type $handler )

Constructor

Constructor

Parameters

$handler
public array
# getGrantedGroups( string $gperm_name, integer $id = null )

Returns permissions for a certain type

Returns permissions for a certain type

Parameters

$gperm_name
$type "global", "forum" or "topic" (should perhaps have "post" as well - but I don't know)
$id
id of the item (forum, topic or possibly post) to get permissions for

Returns

array
public
# getGrantedGroupsForIds( arr $item_ids_array, str $gperm_name = false )

Parameters

$item_ids_array
$gperm_name
public array
# getGrantedItems( string $gperm_name, integer $id = null )

Returns permissions for a certain type

Returns permissions for a certain type

Parameters

$gperm_name
$type "global", "forum" or "topic" (should perhaps have "post" as well - but I don't know)
$id
id of the item (forum, topic or possibly post) to get permissions for

Returns

array
public
# storeAllPermissionsForId( integer $id )

Parameters

$id
public boolean
# saveItem_Permissions( array $groups, integer $itemid, string $perm_name )

Saves permissions for the selected category

Saves permissions for the selected category

saveCategory_Permissions()

Parameters

$groups
: group with granted permission
$itemid
$categoryID : categoryID on which we are setting permissions for Categories and Forums
$perm_name
: name of the permission

Returns

boolean
: TRUE if the no errors occured
public boolean
# accessGranted( string $gperm_name, integer $gperm_itemid )

Checks if the user has access to a specific permission on a given object

Checks if the user has access to a specific permission on a given object

Parameters

$gperm_name
name of the permission to test
$gperm_itemid
id of the object to check

Returns

boolean
: TRUE if user has access, FALSE if not
Properties summary
public unknown_type $handler
#
API documentation generated by ApiGen