NullPermissionManager Class Reference

Detailed Description

NullPermissionManager acts like an absent PermissionManager.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 20 of file NullPermissionManager.php.

+ Inheritance diagram for NullPermissionManager:

Public Member Functions

 authorize ($resource, $context, $action, $login=null, $applyDefaultPolicy=true)
 
 addTempPermission ($resource, $context, $action)
 
 removeTempPermission ($handle)
 
 hasTempPermission ($resource, $context, $action)
 
 clearTempPermissions ()
 
 getPermissions ($resource, $context, $action)
 
 setPermissions ($resource, $context, $action, $permissions)
 
 createPermission ($resource, $context, $action, $role, $modifier)
 
 removePermission ($resource, $context, $action, $role)
 

Additional Inherited Members

- Public Attributes inherited from PermissionManager
const PERMISSION_MODIFIER_ALLOW = '+'
 
const PERMISSION_MODIFIER_DENY = '-'
 

Member Function Documentation

◆ authorize()

authorize (   $resource,
  $context,
  $action,
  $login = null,
  $applyDefaultPolicy = true 
)
See also
PermissionManager::authorize()

Implements PermissionManager.

Definition at line 31 of file NullPermissionManager.php.

◆ addTempPermission()

addTempPermission (   $resource,
  $context,
  $action 
)

◆ removeTempPermission()

removeTempPermission (   $handle)

◆ hasTempPermission()

hasTempPermission (   $resource,
  $context,
  $action 
)

◆ clearTempPermissions()

clearTempPermissions ( )

◆ getPermissions()

getPermissions (   $resource,
  $context,
  $action 
)
See also
PermissionManager::getPermissions()

Implements PermissionManager.

Definition at line 63 of file NullPermissionManager.php.

◆ setPermissions()

setPermissions (   $resource,
  $context,
  $action,
  $permissions 
)
See also
PermissionManager::setPermissions()

Implements PermissionManager.

Definition at line 70 of file NullPermissionManager.php.

◆ createPermission()

createPermission (   $resource,
  $context,
  $action,
  $role,
  $modifier 
)

◆ removePermission()

removePermission (   $resource,
  $context,
  $action,
  $role 
)