PHP Class SmartySecurityVanilla, vanilla

Inheritance: extends Smarty_Security
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Méthode Description
isTrustedPhpFunction ( string $function_name, object $compiler ) : boolean Check if PHP function is trusted.
setPhpFunctions ( array $php_functions ) : array Set allowed PHP functions. Normalize casing for comparison.

Method Details

isTrustedPhpFunction() public méthode

Check if PHP function is trusted.
public isTrustedPhpFunction ( string $function_name, object $compiler ) : boolean
$function_name string
$compiler object compiler object
Résultat boolean true if function is trusted

setPhpFunctions() public méthode

Set allowed PHP functions. Normalize casing for comparison.
public setPhpFunctions ( array $php_functions ) : array
$php_functions array PHP functions to allow.
Résultat array