SecurityPolicy
in package
implements
SecurityPolicyInterface
FinalYes
Represents a security policy which need to be enforced when sandbox mode is enabled.
Tags
Table of Contents
Interfaces
- SecurityPolicyInterface
- Interface that all security policy classes must implements.
Properties
- $allowedFilters : mixed
- $allowedFunctions : mixed
- $allowedMethods : mixed
- $allowedProperties : mixed
- $allowedTags : mixed
Methods
- __construct() : mixed
- checkMethodAllowed() : void
- checkPropertyAllowed() : void
- checkSecurity() : void
- setAllowedFilters() : void
- setAllowedFunctions() : void
- setAllowedMethods() : void
- setAllowedProperties() : void
- setAllowedTags() : void
Properties
$allowedFilters
private
mixed
$allowedFilters
$allowedFunctions
private
mixed
$allowedFunctions
$allowedMethods
private
mixed
$allowedMethods
$allowedProperties
private
mixed
$allowedProperties
$allowedTags
private
mixed
$allowedTags
Methods
__construct()
public
__construct([array<string|int, mixed> $allowedTags = [] ][, array<string|int, mixed> $allowedFilters = [] ][, array<string|int, mixed> $allowedMethods = [] ][, array<string|int, mixed> $allowedProperties = [] ][, array<string|int, mixed> $allowedFunctions = [] ]) : mixed
Parameters
- $allowedTags : array<string|int, mixed> = []
- $allowedFilters : array<string|int, mixed> = []
- $allowedMethods : array<string|int, mixed> = []
- $allowedProperties : array<string|int, mixed> = []
- $allowedFunctions : array<string|int, mixed> = []
checkMethodAllowed()
public
checkMethodAllowed(mixed $obj, mixed $method) : void
Parameters
- $obj : mixed
- $method : mixed
checkPropertyAllowed()
public
checkPropertyAllowed(mixed $obj, mixed $property) : void
Parameters
- $obj : mixed
- $property : mixed
checkSecurity()
public
checkSecurity(mixed $tags, mixed $filters, mixed $functions) : void
Parameters
- $tags : mixed
- $filters : mixed
- $functions : mixed
setAllowedFilters()
public
setAllowedFilters(array<string|int, mixed> $filters) : void
Parameters
- $filters : array<string|int, mixed>
setAllowedFunctions()
public
setAllowedFunctions(array<string|int, mixed> $functions) : void
Parameters
- $functions : array<string|int, mixed>
setAllowedMethods()
public
setAllowedMethods(array<string|int, mixed> $methods) : void
Parameters
- $methods : array<string|int, mixed>
setAllowedProperties()
public
setAllowedProperties(array<string|int, mixed> $properties) : void
Parameters
- $properties : array<string|int, mixed>
setAllowedTags()
public
setAllowedTags(array<string|int, mixed> $tags) : void
Parameters
- $tags : array<string|int, mixed>