Component/Acl.php

Classes 
Classes
Kwf_Component_Acl

\Kwf_Component_Acl

Properties
$_roleRegistry
$_rules
Methods
__construct
_getAllowedComponentClasses
_getRole
_getRules
_init
_isAllowedComponentData
_isAllowedComponentDataByRole
allowComponent
allowComponentRecursive
denyComponent
denyComponentRecursive
getAllowedChildComponents
getAllowedRecursiveChildComponents
isAllowed

Properties

$_roleRegistry

 $_roleRegistry = ''

Details

visibility
protected
default
final
false
static
false

$_rules

 $_rules = 'array'

Details

visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct(  $roleRegistry ) :
Arguments
$roleRegistry
Details
visibility
public
final
false
static
false

_getAllowedComponentClasses

_getAllowedComponentClasses(  $userRow ) : array

Arguments
$userRow
Output
array
array mit klassen die erlaubt sind
Details
visibility
protected
final
false
static
false

_getRole

_getRole(  $userRow ) :
Arguments
$userRow
Details
visibility
protected
final
false
static
false

_getRules

_getRules(  $type,  $name,  $role = null,  $create = false ) :
Arguments
$type
$name
$role
$create
Details
visibility
protected
final
false
static
false

_init

_init( ) :
Details
visibility
protected
final
false
static
false

_isAllowedComponentData

_isAllowedComponentData(  $userRow,  $component ) :
Arguments
$userRow
$component
Details
visibility
protected
final
false
static
false

_isAllowedComponentDataByRole

_isAllowedComponentDataByRole(  $role,  $component ) :
Arguments
$role
$component
Details
visibility
protected
final
false
static
false

allowComponent

allowComponent(  $role,  $componentClass,  $privilege = null ) :

Allow Component plus child components on same page

Arguments
$role
$componentClass
$privilege
Details
visibility
public
final
false
static
false

allowComponentRecursive

allowComponentRecursive(  $role,  $componentClass,  $privilege = null ) :

Allow Component plus child components including all child pages

Arguments
$role
$componentClass
$privilege
Details
visibility
public
final
false
static
false

denyComponent

denyComponent(  $role,  $componentClass,  $privilege = null ) :
Arguments
$role
$componentClass
$privilege
Details
visibility
public
final
false
static
false

denyComponentRecursive

denyComponentRecursive(  $role,  $componentClass,  $privilege = null ) :
Arguments
$role
$componentClass
$privilege
Details
visibility
public
final
false
static
false

getAllowedChildComponents

getAllowedChildComponents(  $userRow,  $component ) :

Gibt alle Unterkomponenten einer Seite zurück die barbeitet werden dürfen

d.h. alles bis zur pseudoPage oder showInPageTreeAdmin

Arguments
$userRow
$component
Details
visibility
public
final
false
static
false

getAllowedRecursiveChildComponents

getAllowedRecursiveChildComponents(  $userRow ) :

Gibt alle Komponenten zurück die im Seitenbaum bearbeitet werden dürfen

alles was unter einer seite liegt die im seitenbaum angezeigt wird

Langsam

Arguments
$userRow
Details
visibility
public
final
false
static
false

isAllowed

isAllowed( \User-Row $userRow,  $component,  $privilege = null ) : bool

Arguments
$userRow
\User-Row
/ null für guest
$component
Kwf_Component_Data/string
$privilege
string
Output
bool
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.12.3.