$php_functions
$php_functions : array<mixed,string>|null
This is an array of trusted PHP functions.
If empty all functions are allowed. If null, no functions are allowed.
__construct(\Box\Brainy\Brainy $smarty)
Constructs a new security policy
\Box\Brainy\Brainy | $smarty | An instance of Brainy |
isTrustedPhpFunction(string $function_name, object $compiler) : boolean
Check if PHP function is trusted.
string | $function_name | The name of the PHP function |
object | $compiler | compiler object |
if php function is not trusted
true if function is trusted
isTrustedPhpModifier(string $modifier_name, object $compiler) : boolean
Check if PHP modifier is trusted.
string | $modifier_name | The name of the PHP function |
object | $compiler | compiler object |
if modifier is not trusted
true if modifier is trusted
isTrustedTag(string $tag_name, object $compiler) : boolean
Check if tag is trusted.
string | $tag_name | The name of the tag |
object | $compiler | compiler object |
if modifier is not trusted
true if tag is trusted
isTrustedModifier(string $modifier_name, object $compiler) : boolean
Check if modifier plugin is trusted.
string | $modifier_name | The name of the modifier |
object | $compiler | compiler object |
if modifier is not trusted
true if tag is trusted