MetaFox

CanApprove
in package
implements PolicyRuleInterface Uses CheckModeratorSettingTrait

Class CanApprove.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Interfaces

PolicyRuleInterface
Interface PolicyCheckInterface Check by function or policy handler.

Methods

check()  : bool|null
This method invoked by PolicyGate::check.
checkModeratorSetting()  : bool

Methods

check()

This method invoked by PolicyGate::check.

public check(string $entityType, User $user, mixed $resource[, mixed $newValue = null ]) : bool|null
Parameters
$entityType : string
$user : User
$resource : mixed
$newValue : mixed = null
Return values
bool|null

        
On this page

Search results