class SecurityPolicy implements Policy

Default-deny policy.

Traits

Better OOP experience.

Constants

ALL

Methods

static SecurityPolicy
createSafePolicy()

No description

allowMacros(array $macros)

No description

allowFilters(array $filters)

No description

allowFunctions(array $functions)

No description

allowMethods(string $class, array $methods)

No description

allowProperties(string $class, array $properties)

No description

bool
isMacroAllowed(string $macro)

No description

bool
isFilterAllowed(string $filter)

No description

bool
isFunctionAllowed(string $function)

No description

bool
isMethodAllowed(string $class, string $method)

No description

bool
isPropertyAllowed(string $class, string $property)

No description

Details

at line 46
static SecurityPolicy createSafePolicy()

Return Value

SecurityPolicy

at line 73
SecurityPolicy allowMacros(array $macros)

Parameters

array $macros

Return Value

SecurityPolicy

at line 80
SecurityPolicy allowFilters(array $filters)

Parameters

array $filters

Return Value

SecurityPolicy

at line 87
SecurityPolicy allowFunctions(array $functions)

Parameters

array $functions

Return Value

SecurityPolicy

at line 94
SecurityPolicy allowMethods(string $class, array $methods)

Parameters

string $class
array $methods

Return Value

SecurityPolicy

at line 102
SecurityPolicy allowProperties(string $class, array $properties)

Parameters

string $class
array $properties

Return Value

SecurityPolicy

at line 110
bool isMacroAllowed(string $macro)

Parameters

string $macro

Return Value

bool

at line 116
bool isFilterAllowed(string $filter)

Parameters

string $filter

Return Value

bool

at line 122
bool isFunctionAllowed(string $function)

Parameters

string $function

Return Value

bool

at line 128
bool isMethodAllowed(string $class, string $method)

Parameters

string $class
string $method

Return Value

bool

at line 144
bool isPropertyAllowed(string $class, string $property)

Parameters

string $class
string $property

Return Value

bool