Class humhub\components\access\DelegateAccessValidator

Inheritancehumhub\components\access\DelegateAccessValidator » humhub\components\access\ActionAccessValidator » humhub\components\access\AccessValidator » yii\base\BaseObject

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$access humhub\components\access\ControllerAccess Access instance humhub\components\access\AccessValidator
$actionFilter boolean Determines if this validator is only interested in action related rules or all validator related rules humhub\components\access\AccessValidator
$code integer Http error code used in case the validation failes humhub\components\access\AccessValidator
$handler humhub\components\access\DelegateAccessValidator
$name string The name of the valdiator humhub\components\access\AccessValidator
$owner humhub\components\access\DelegateAccessValidator
$reason string Validator error message humhub\components\access\AccessValidator
$strict boolean If set to true (default) all validator related rules have to pass otherwise only one humhub\components\access\ActionAccessValidator

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
extractActions() Extracts actions settings form a given rule. humhub\components\access\AccessValidator
filterRelatedRules() Filters out all rules which are not related to this validator. humhub\components\access\AccessValidator
getRuleName() Extracts the ruleName from the given array. humhub\components\access\AccessValidator
isActionRelated() Checks if the current action is contained in the given $rule. humhub\components\access\AccessValidator
validate() humhub\components\access\DelegateAccessValidator

Property Details

$handler public property
public $handler null
$owner public property
public $owner null

Method Details

validate() protected method

protected void validate ( $rule )
$rule