public function isTrustedPhpModifier($modifier_name, $compiler)
    {
        if (isset($this->php_modifiers) && (empty($this->php_modifiers) || in_array($modifier_name, $this->php_modifiers))) {
            return true;
        }

        $compiler->trigger_template_error("modifier '{$modifier_name}' not allowed by security setting");

        return false; // should not, but who knows what happens to the compiler in the future?
    }
public function isTrustedPhpModifier($modifier_name, $compiler)
    {
        if (isset($this->php_modifiers) && (empty($this->php_modifiers) || in_array($modifier_name, $this->php_modifiers))) {
            return true;
        }

        $compiler->trigger_template_error("modifier '{$modifier_name}' not allowed by security setting");

        return false; // should not, but who knows what happens to the compiler in the future?
    }
public function isTrustedPhpModifier ( $ modifier_name , $ compiler ) { if ( isset ( $ this -> php_modifiers ) && ( empty ( $ this -> php_modifiers ) || in_array ( $ modifier_name , $ this -> php_modifiers ) ) ) { return true ; } $ compiler -> trigger_template_error ( "modifier '{$modifier_name}' not allowed by security setting" ) ; return false ; // should not, but who knows what happens to the compiler in the future? }
Check if PHP modifier is trusted.

@param  string                  $modifier_name
@param  object                  $compiler      compiler object
@return boolean                 true if modifier is trusted
@throws SmartyCompilerException if modifier is not trusted
Check if PHP modifier is trusted .