Before

…lines 1–50 unchanged (50 lines)
51 */
52class Smarty extends \Smarty\TemplateBase {
53
54 /**
55 * smarty version
56 */
57 const SMARTY_VERSION = '5.6.0';
58
59 /**
60 * define caching modes
61 */
62 const CACHING_OFF = 0;
63 const CACHING_LIFETIME_CURRENT = 1;
…lines 64–2240 unchanged (2177 lines)

After

…lines 1–50 unchanged (50 lines)
51 */
52class Smarty extends \Smarty\TemplateBase {
53
54 /**
55 * smarty version
56 */
57 const SMARTY_VERSION = '5.7.0';
58
59 /**
60 * define caching modes
61 */
62 const CACHING_OFF = 0;
63 const CACHING_LIFETIME_CURRENT = 1;
…lines 64–2240 unchanged (2177 lines)

Before

program
php_tag "<?php"
namespace_definition
namespace "namespace"
namespace_name
name "Smarty"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "FilesystemIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "RecursiveDirectoryIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "RecursiveIteratorIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Cacheresource"
\ "\\"
name "File"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "Base"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "BCPluginsAdapter"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "CallbackWrapper"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "CoreExtension"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "DefaultExtension"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "ExtensionInterface"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Filter"
\ "\\"
name "Output"
\ "\\"
name "TrimWhitespace"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "CaptureRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "DefaultPluginHandlerRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "ForeachRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "InheritanceRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "TplFunctionRuntime"
; ";"
comment "/**\n * Project: Smarty: the PHP compiling template engin"...
comment "/**\n * This is the main Smarty class\n */"
class_declaration
class "class"
name "Smarty"
base_clause
extends "extends"
qualified_name
\ "\\"
namespace_name
name "Smarty"
\ "\\"
name "TemplateBase"
declaration_list
{ "{"
comment "/**\n\t * smarty version\n\t */"
const_declaration
const "const"
const_element
name "SMARTY_VERSION"
= "="
string
' "'"
string_content "5.6.0"
' "'"
; ";"
comment "/**\n\t * define caching modes\n\t */"
const_declaration
const "const"
const_element
name "CACHING_OFF"
= "="
integer "0"
; ";"
const_declaration
const "const"
const_element
name "CACHING_LIFETIME_CURRENT"
= "="
integer "1"
; ";"
const_declaration
const "const"
const_element
name "CACHING_LIFETIME_SAVED"
= "="
integer "2"
; ";"
comment "/**\n\t * define constant for clearing cache files be saved ex"...
const_declaration
const "const"
const_element
name "CLEAR_EXPIRED"
= "="
unary_op_expression
- "-"
integer "1"
; ";"
comment "/**\n\t * define compile check modes\n\t */"
const_declaration
const "const"
const_element
name "COMPILECHECK_OFF"
= "="
integer "0"
; ";"
const_declaration
const "const"
const_element
name "COMPILECHECK_ON"
= "="
integer "1"
; ";"
comment "/**\n\t * filter types\n\t */"
const_declaration
const "const"
const_element
name "FILTER_POST"
= "="
string
' "'"
string_content "post"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_PRE"
= "="
string
' "'"
string_content "pre"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_OUTPUT"
= "="
string
' "'"
string_content "output"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_VARIABLE"
= "="
string
' "'"
string_content "variable"
' "'"
; ";"
comment "/**\n\t * plugin types\n\t */"
const_declaration
const "const"
const_element
name "PLUGIN_FUNCTION"
= "="
string
' "'"
string_content "function"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_BLOCK"
= "="
string
' "'"
string_content "block"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_COMPILER"
= "="
string
' "'"
string_content "compiler"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_MODIFIER"
= "="
string
' "'"
string_content "modifier"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_MODIFIERCOMPILER"
= "="
string
' "'"
string_content "modifiercompiler"
' "'"
; ";"
comment "/**\n\t * The character set to adhere to (defaults to \"UTF-8\")"...
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_CHARSET"
= "="
string
' "'"
string_content "UTF-8"
' "'"
; ";"
comment "/**\n\t * The date format to be used internally\n\t * (accepts d"...
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_DATE_FORMAT"
= "="
string
' "'"
string_content "%b %e, %Y"
' "'"
; ";"
comment "/**\n\t * Flag denoting if PCRE should run in UTF-8 mode\n\t */"
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_UTF8_MODIFIER"
= "="
string
' "'"
string_content "u"
' "'"
; ";"
comment "/**\n\t * Flag denoting if operating system is windows\n\t */"
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_IS_WINDOWS"
= "="
boolean "false"
; ";"
comment "/**\n\t * auto literal on delimiters with whitespace\n\t *\n\t * @"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "auto_literal"
= "="
boolean "true"
; ";"
comment "/**\n\t * display error on not assigned variables\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "error_unassigned"
= "="
boolean "false"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_templateDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * joined template directory string used in cache keys\n"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_joined_template_dir"
= "="
null "null"
; ";"
comment "/**\n\t * flag if config_dir is normalized\n\t *\n\t * @var bool\n\t"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_configDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * joined config directory string used in cache keys\n\t "...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_joined_config_dir"
= "="
null "null"
; ";"
comment "/**\n\t * default template handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_template_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * default config handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_config_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * default plugin handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "default_plugin_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_compileDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_cacheDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * force template compiling?\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "force_compile"
= "="
boolean "false"
; ";"
comment "/**\n\t * use sub dirs for compiled/cached files?\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "use_sub_dirs"
= "="
boolean "false"
; ";"
comment "/**\n\t * merge compiled includes\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "merge_compiled_includes"
= "="
boolean "false"
; ";"
comment "/**\n\t * force cache file creation\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "force_cache"
= "="
boolean "false"
; ";"
comment "/**\n\t * template left-delimiter\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "left_delimiter"
= "="
encapsed_string
" "\""
string_content "{"
" "\""
; ";"
comment "/**\n\t * template right-delimiter\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "right_delimiter"
= "="
encapsed_string
" "\""
string_content "}"
" "\""
; ";"
comment "/**\n\t * array of strings which shall be treated as literal b"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "literals"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * class name\n\t * This should be instance of \\Smarty\\Se"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "security_class"
= "="
class_constant_access_expression
qualified_name
\ "\\"
namespace_name
name "Smarty"
\ "\\"
name "Security"
:: "::"
name "class"
; ";"
comment "/**\n\t * implementation of security class\n\t *\n\t * @var \\Smart"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "security_policy"
= "="
null "null"
; ";"
comment "/**\n\t * debug mode\n\t * Setting this to true enables the debu"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debugging"
= "="
boolean "false"
; ";"
comment "/**\n\t * This determines if debugging is enable-able from the"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debugging_ctrl"
= "="
string
' "'"
string_content "NONE"
' "'"
; ";"
comment "/**\n\t * Name of debugging URL-param.\n\t * Only used when $deb"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "smarty_debug_id"
= "="
string
' "'"
string_content "SMARTY_DEBUG"
' "'"
; ";"
comment "/**\n\t * Path of debug template.\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debug_tpl"
= "="
null "null"
; ";"
comment "/**\n\t * When set, smarty uses this value as error_reporting-"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "error_reporting"
= "="
null "null"
; ";"
comment "/**\n\t * Controls whether variables with the same name overwr"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_overwrite"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether config values of on/true/yes and of"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_booleanize"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether hidden config sections/vars are rea"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_read_hidden"
= "="
boolean "false"
; ";"
comment "/**\n\t * locking concurrent compiles\n\t *\n\t * @var boolean\n\t *"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "compile_locking"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether cache resources should use locking "...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "cache_locking"
= "="
boolean "false"
; ";"
comment "/**\n\t * seconds to wait for acquiring a lock before ignoring"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "locking_timeout"
= "="
integer "10"
; ";"
comment "/**\n\t * resource type used if none given\n\t * Must be a valid"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_resource_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * cache resource\n\t * Must be a subclass of \\Smarty\\Cac"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "cacheResource"
; ";"
comment "/**\n\t * config type\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_config_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * check If-Modified-Since headers\n\t *\n\t * @var boolean"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "cache_modified_check"
= "="
boolean "false"
; ";"
comment "/**\n\t * registered plugins\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_plugins"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered objects\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_objects"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered classes\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_classes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered resources\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_resources"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered cache resources\n\t *\n\t * @var array\n\t * @d"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "registered_cache_resources"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * default modifier\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_modifiers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * autoescape variable output\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "escape_html"
= "="
boolean "false"
; ";"
comment "/**\n\t * start time for execution time calculation\n\t *\n\t * @v"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "start_time"
= "="
integer "0"
; ";"
comment "/**\n\t * internal flag to enable parser debugging\n\t *\n\t * @va"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_parserdebug"
= "="
boolean "false"
; ";"
comment "/**\n\t * Debug object\n\t *\n\t * @var \\Smarty\\Debug\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_debug"
= "="
null "null"
; ";"
comment "/**\n\t * template directory\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "template_dir"
= "="
array_creation_expression
[ "["
array_element_initializer
string
' "'"
string_content "./templates/"
' "'"
] "]"
; ";"
comment "/**\n\t * flags for normalized template directory entries\n\t *\n"...
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "_processedTemplateDir"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * config directory\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "config_dir"
= "="
array_creation_expression
[ "["
array_element_initializer
string
' "'"
string_content "./configs/"
' "'"
] "]"
; ";"
comment "/**\n\t * flags for normalized template directory entries\n\t *\n"...
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "_processedConfigDir"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * compile directory\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "compile_dir"
= "="
string
' "'"
string_content "./templates_c/"
' "'"
; ";"
comment "/**\n\t * cache directory\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "cache_dir"
= "="
string
' "'"
string_content "./cache/"
' "'"
; ";"
comment "/**\n\t * PHP7 Compatibility mode\n\t *\n\t * @var bool\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "isMutingUndefinedOrNullWarnings"
= "="
boolean "false"
; ";"
comment "/**\n\t * Cache of loaded resource handlers.\n\t *\n\t * @var arra"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_resource_handlers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Cache of loaded cacheresource handlers.\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_cacheresource_handlers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * List of extensions\n\t *\n\t * @var ExtensionInterface[]"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "extensions"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * @var BCPluginsAdapter\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "BCPluginsAdapter"
; ";"
comment "/**\n\t * Initialize new Smarty object\n\t */"
method_declaration (+206 nodes collapsed)
comment "/**\n\t * Load an additional extension.\n\t *\n\t * @return void\n\t"...
method_declaration (+33 nodes collapsed)
comment "/**\n\t * Returns all loaded extensions\n\t *\n\t * @return array|"...
method_declaration (+23 nodes collapsed)
comment "/**\n\t * Replace the entire list extensions, allowing you to "...
method_declaration (+32 nodes collapsed)
comment "/**\n\t * Check if a template resource exists\n\t *\n\t * @param s"...
method_declaration (+55 nodes collapsed)
comment "/**\n\t * Loads security class and enables security\n\t *\n\t * @p"...
method_declaration (+46 nodes collapsed)
comment "/**\n\t * Disable security\n\t *\n\t * @return static current Smar"...
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Add template directory(s)\n\t *\n\t * @param string|arra"...
method_declaration (+301 nodes collapsed)
comment "/**\n\t * Get template directories\n\t *\n\t * @param mixed $index"...
method_declaration (+164 nodes collapsed)
comment "/**\n\t * Set template directory\n\t *\n\t * @param string|array $"...
method_declaration (+119 nodes collapsed)
comment "/**\n\t * Adds a template directory before any existing direct"...
method_declaration (+89 nodes collapsed)
comment "/**\n\t * Add config directory(s)\n\t *\n\t * @param string|array "...
method_declaration (+46 nodes collapsed)
comment "/**\n\t * Get config directory\n\t *\n\t * @param mixed $index ind"...
method_declaration (+36 nodes collapsed)
comment "/**\n\t * Set config directory\n\t *\n\t * @param $config_dir\n\t *\n"...
method_declaration (+34 nodes collapsed)
comment "/**\n\t * Registers plugin to be used in templates\n\t *\n\t * @pa"...
method_declaration (+187 nodes collapsed)
comment "/**\n\t * Returns plugin previously registered using ::registe"...
method_declaration (+82 nodes collapsed)
comment "/**\n\t * Unregisters plugin previously registered using ::reg"...
method_declaration (+81 nodes collapsed)
comment "/**\n\t * Adds directory of plugin files\n\t *\n\t * @param null|a"...
method_declaration (+128 nodes collapsed)
comment "/**\n\t * Get plugin directories\n\t *\n\t * @return array list of"...
method_declaration (+38 nodes collapsed)
comment "/**\n\t * Set plugins directory\n\t *\n\t * @param string|array $p"...
method_declaration (+108 nodes collapsed)
comment "/**\n\t * Registers a default plugin handler\n\t *\n\t * @param ca"...
method_declaration (+96 nodes collapsed)
comment "/**\n\t * Get compiled directory\n\t *\n\t * @return string path t"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t *\n\t * @param string $compile_dir directory to store co"...
method_declaration (+53 nodes collapsed)
comment "/**\n\t * Get cache directory\n\t *\n\t * @return string path of c"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t * Set cache directory\n\t *\n\t * @param string $cache_dir"...
method_declaration (+53 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "templates"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Creates a template object\n\t *\n\t * @param string $tem"...
method_declaration (+166 nodes collapsed)
comment "/**\n\t * Get unique template id\n\t *\n\t * @param string $resour"...
method_declaration (+236 nodes collapsed)
comment "/**\n\t * Normalize path\n\t * - remove /./ and /../\n\t * - mak"...
method_declaration (+441 nodes collapsed)
comment "/**\n\t * @param boolean $use_sub_dirs\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param int $error_reporting\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $escape_html\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Return auto_literal flag\n\t *\n\t * @return boolean\n\t *"...
method_declaration
visibility_modifier
public "public"
function "function"
name "getAutoLiteral"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "auto_literal"
; ";"
} "}"
comment "/**\n\t * Set auto_literal flag\n\t *\n\t * @param boolean $auto_l"...
method_declaration (+30 nodes collapsed)
comment "/**\n\t * @param boolean $force_compile\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $merge_compiled_includes\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Get left delimiter\n\t *\n\t * @return string\n\t */"
method_declaration
visibility_modifier
public "public"
function "function"
name "getLeftDelimiter"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "left_delimiter"
; ";"
} "}"
comment "/**\n\t * Set left delimiter\n\t *\n\t * @param string $left_delim"...
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Get right delimiter\n\t *\n\t * @return string $right_de"...
method_declaration
visibility_modifier
public "public"
function "function"
name "getRightDelimiter"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "right_delimiter"
; ";"
} "}"
comment "/**\n\t * Set right delimiter\n\t *\n\t * @param string\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $debugging\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_overwrite\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_booleanize\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_read_hidden\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $compile_locking\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param string $default_resource_type\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Test install\n\t *\n\t * @param null $errors\n\t */"
method_declaration (+42 nodes collapsed)
comment "/**\n\t * Get Smarty object\n\t *\n\t * @return static\n\t */"
method_declaration
visibility_modifier
public "public"
function "function"
name "getSmarty"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
variable_name
$ "$"
name "this"
; ";"
} "}"
comment "/**\n\t * Normalize and set directory string\n\t *\n\t * @param st"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t * Normalize template_dir or config_dir\n\t *\n\t * @param "...
method_declaration (+322 nodes collapsed)
comment "/**\n\t * Mutes errors for \"undefined index\", \"undefined array"...
method_declaration (+24 nodes collapsed)
comment "/**\n\t * Indicates if Smarty will mute errors for \"undefined "...
method_declaration (+23 nodes collapsed)
comment "/**\n\t * Empty cache for a specific template\n\t *\n\t * @param s"...
method_declaration (+78 nodes collapsed)
comment "/**\n\t * Empty cache folder\n\t *\n\t * @param integer $exp_time "...
method_declaration (+44 nodes collapsed)
comment "/**\n\t * Delete compiled template file\n\t *\n\t * @param string "...
method_declaration (+1124 nodes collapsed)
comment "/**\n\t * Compile all template files\n\t *\n\t * @param string $ex"...
method_declaration (+72 nodes collapsed)
comment "/**\n\t * Compile all config files\n\t *\n\t * @param string $exte"...
method_declaration (+75 nodes collapsed)
comment "/**\n\t * Compile all template or config files\n\t *\n\t * @param "...
method_declaration (+757 nodes collapsed)
comment "/**\n\t * check client side cache\n\t *\n\t * @param \\Smarty\\Templ"...
method_declaration (+493 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+87 nodes collapsed)
comment "/**\n\t * Run pre-filters over template source\n\t *\n\t * @param "...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Run post-filters over template's compiled code\n\t *\n\t"...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Run filters over template output\n\t *\n\t * @param stri"...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Writes file in a safe way to disk\n\t *\n\t * @param str"...
method_declaration (+576 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "runtimes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Loads and returns a runtime extension or null if not"...
method_declaration (+255 nodes collapsed)
comment "/**\n\t * Indicates if a runtime is available.\n\t *\n\t * @param "...
method_declaration (+66 nodes collapsed)
comment "/**\n\t * @return callable|null\n\t */"
method_declaration (+24 nodes collapsed)
comment "/**\n\t * load a filter of specified type and name\n\t *\n\t * @pa"...
method_declaration (+359 nodes collapsed)
comment "/**\n\t * load a filter of specified type and name\n\t *\n\t * @pa"...
method_declaration (+68 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "_caching_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * @param $type\n\t *\n\t * @return void\n\t * @deprecated si"...
method_declaration (+60 nodes collapsed)
comment "/**\n\t * @return string\n\t * @deprecated since 5.0\n\t */"
method_declaration (+44 nodes collapsed)
comment "/**\n\t * Registers a resource to fetch a template\n\t *\n\t * @pa"...
method_declaration (+86 nodes collapsed)
comment "/**\n\t * Unregisters a resource to fetch a template\n\t *\n\t * @"...
method_declaration (+85 nodes collapsed)
method_declaration (+105 nodes collapsed)
comment "/**\n\t * Registers a filter function\n\t *\n\t * @param string $t"...
method_declaration (+314 nodes collapsed)
comment "/**\n\t * Return internal filter name\n\t *\n\t * @param callback "...
method_declaration (+123 nodes collapsed)
comment "/**\n\t * Unregisters a filter function. Smarty cannot unregis"...
method_declaration (+195 nodes collapsed)
comment "/**\n\t * Add default modifiers\n\t *\n\t * @param array|string $m"...
method_declaration (+86 nodes collapsed)
comment "/**\n\t * Get default modifiers\n\t *\n\t * @return array list of "...
method_declaration
visibility_modifier
public "public"
function "function"
name "getDefaultModifiers"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "default_modifiers"
; ";"
} "}"
comment "/**\n\t * Set default modifiers\n\t *\n\t * @param array|string $m"...
method_declaration (+38 nodes collapsed)
comment "/**\n\t * @return Cacheresource\\Base\n\t */"
method_declaration (+27 nodes collapsed)
comment "/**\n\t * @param Cacheresource\\Base $cacheResource\n\t */"
method_declaration (+36 nodes collapsed)
comment "/**\n\t * fetches a rendered Smarty template\n\t *\n\t * @param st"...
method_declaration (+63 nodes collapsed)
comment "/**\n\t * displays a Smarty template\n\t *\n\t * @param string $te"...
method_declaration (+62 nodes collapsed)
comment "/**\n\t * @param $resource_name\n\t * @param $cache_id\n\t * @para"...
method_declaration (+468 nodes collapsed)
comment "/**\n\t * test if cache is valid\n\t *\n\t * @param null|string|Te"...
method_declaration (+63 nodes collapsed)
comment "/**\n\t * @param $template\n\t * @param $cache_id\n\t * @param $co"...
method_declaration (+105 nodes collapsed)
comment "/**\n\t * Sets if Smarty should check If-Modified-Since header"...
method_declaration (+34 nodes collapsed)
} "}"

After

program
php_tag "<?php"
namespace_definition
namespace "namespace"
namespace_name
name "Smarty"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "FilesystemIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "RecursiveDirectoryIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
name "RecursiveIteratorIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Cacheresource"
\ "\\"
name "File"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "Base"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "BCPluginsAdapter"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "CallbackWrapper"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "CoreExtension"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "DefaultExtension"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Extension"
\ "\\"
name "ExtensionInterface"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Filter"
\ "\\"
name "Output"
\ "\\"
name "TrimWhitespace"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "CaptureRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "DefaultPluginHandlerRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "ForeachRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "InheritanceRuntime"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Smarty"
\ "\\"
name "Runtime"
\ "\\"
name "TplFunctionRuntime"
; ";"
comment "/**\n * Project: Smarty: the PHP compiling template engin"...
comment "/**\n * This is the main Smarty class\n */"
class_declaration
class "class"
name "Smarty"
base_clause
extends "extends"
qualified_name
\ "\\"
namespace_name
name "Smarty"
\ "\\"
name "TemplateBase"
declaration_list
{ "{"
comment "/**\n\t * smarty version\n\t */"
const_declaration
const "const"
const_element
name "SMARTY_VERSION"
= "="
string
' "'"
string_content "5.7.0"
' "'"
; ";"
comment "/**\n\t * define caching modes\n\t */"
const_declaration
const "const"
const_element
name "CACHING_OFF"
= "="
integer "0"
; ";"
const_declaration
const "const"
const_element
name "CACHING_LIFETIME_CURRENT"
= "="
integer "1"
; ";"
const_declaration
const "const"
const_element
name "CACHING_LIFETIME_SAVED"
= "="
integer "2"
; ";"
comment "/**\n\t * define constant for clearing cache files be saved ex"...
const_declaration
const "const"
const_element
name "CLEAR_EXPIRED"
= "="
unary_op_expression
- "-"
integer "1"
; ";"
comment "/**\n\t * define compile check modes\n\t */"
const_declaration
const "const"
const_element
name "COMPILECHECK_OFF"
= "="
integer "0"
; ";"
const_declaration
const "const"
const_element
name "COMPILECHECK_ON"
= "="
integer "1"
; ";"
comment "/**\n\t * filter types\n\t */"
const_declaration
const "const"
const_element
name "FILTER_POST"
= "="
string
' "'"
string_content "post"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_PRE"
= "="
string
' "'"
string_content "pre"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_OUTPUT"
= "="
string
' "'"
string_content "output"
' "'"
; ";"
const_declaration
const "const"
const_element
name "FILTER_VARIABLE"
= "="
string
' "'"
string_content "variable"
' "'"
; ";"
comment "/**\n\t * plugin types\n\t */"
const_declaration
const "const"
const_element
name "PLUGIN_FUNCTION"
= "="
string
' "'"
string_content "function"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_BLOCK"
= "="
string
' "'"
string_content "block"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_COMPILER"
= "="
string
' "'"
string_content "compiler"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_MODIFIER"
= "="
string
' "'"
string_content "modifier"
' "'"
; ";"
const_declaration
const "const"
const_element
name "PLUGIN_MODIFIERCOMPILER"
= "="
string
' "'"
string_content "modifiercompiler"
' "'"
; ";"
comment "/**\n\t * The character set to adhere to (defaults to \"UTF-8\")"...
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_CHARSET"
= "="
string
' "'"
string_content "UTF-8"
' "'"
; ";"
comment "/**\n\t * The date format to be used internally\n\t * (accepts d"...
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_DATE_FORMAT"
= "="
string
' "'"
string_content "%b %e, %Y"
' "'"
; ";"
comment "/**\n\t * Flag denoting if PCRE should run in UTF-8 mode\n\t */"
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_UTF8_MODIFIER"
= "="
string
' "'"
string_content "u"
' "'"
; ";"
comment "/**\n\t * Flag denoting if operating system is windows\n\t */"
property_declaration
visibility_modifier
public "public"
static_modifier
static "static"
property_element
variable_name
$ "$"
name "_IS_WINDOWS"
= "="
boolean "false"
; ";"
comment "/**\n\t * auto literal on delimiters with whitespace\n\t *\n\t * @"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "auto_literal"
= "="
boolean "true"
; ";"
comment "/**\n\t * display error on not assigned variables\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "error_unassigned"
= "="
boolean "false"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_templateDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * joined template directory string used in cache keys\n"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_joined_template_dir"
= "="
null "null"
; ";"
comment "/**\n\t * flag if config_dir is normalized\n\t *\n\t * @var bool\n\t"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_configDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * joined config directory string used in cache keys\n\t "...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_joined_config_dir"
= "="
null "null"
; ";"
comment "/**\n\t * default template handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_template_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * default config handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_config_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * default plugin handler\n\t *\n\t * @var callable\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "default_plugin_handler_func"
= "="
null "null"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_compileDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * flag if template_dir is normalized\n\t *\n\t * @var bool"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_cacheDirNormalized"
= "="
boolean "false"
; ";"
comment "/**\n\t * force template compiling?\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "force_compile"
= "="
boolean "false"
; ";"
comment "/**\n\t * use sub dirs for compiled/cached files?\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "use_sub_dirs"
= "="
boolean "false"
; ";"
comment "/**\n\t * merge compiled includes\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "merge_compiled_includes"
= "="
boolean "false"
; ";"
comment "/**\n\t * force cache file creation\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "force_cache"
= "="
boolean "false"
; ";"
comment "/**\n\t * template left-delimiter\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "left_delimiter"
= "="
encapsed_string
" "\""
string_content "{"
" "\""
; ";"
comment "/**\n\t * template right-delimiter\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "right_delimiter"
= "="
encapsed_string
" "\""
string_content "}"
" "\""
; ";"
comment "/**\n\t * array of strings which shall be treated as literal b"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "literals"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * class name\n\t * This should be instance of \\Smarty\\Se"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "security_class"
= "="
class_constant_access_expression
qualified_name
\ "\\"
namespace_name
name "Smarty"
\ "\\"
name "Security"
:: "::"
name "class"
; ";"
comment "/**\n\t * implementation of security class\n\t *\n\t * @var \\Smart"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "security_policy"
= "="
null "null"
; ";"
comment "/**\n\t * debug mode\n\t * Setting this to true enables the debu"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debugging"
= "="
boolean "false"
; ";"
comment "/**\n\t * This determines if debugging is enable-able from the"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debugging_ctrl"
= "="
string
' "'"
string_content "NONE"
' "'"
; ";"
comment "/**\n\t * Name of debugging URL-param.\n\t * Only used when $deb"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "smarty_debug_id"
= "="
string
' "'"
string_content "SMARTY_DEBUG"
' "'"
; ";"
comment "/**\n\t * Path of debug template.\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "debug_tpl"
= "="
null "null"
; ";"
comment "/**\n\t * When set, smarty uses this value as error_reporting-"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "error_reporting"
= "="
null "null"
; ";"
comment "/**\n\t * Controls whether variables with the same name overwr"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_overwrite"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether config values of on/true/yes and of"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_booleanize"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether hidden config sections/vars are rea"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "config_read_hidden"
= "="
boolean "false"
; ";"
comment "/**\n\t * locking concurrent compiles\n\t *\n\t * @var boolean\n\t *"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "compile_locking"
= "="
boolean "true"
; ";"
comment "/**\n\t * Controls whether cache resources should use locking "...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "cache_locking"
= "="
boolean "false"
; ";"
comment "/**\n\t * seconds to wait for acquiring a lock before ignoring"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "locking_timeout"
= "="
integer "10"
; ";"
comment "/**\n\t * resource type used if none given\n\t * Must be a valid"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_resource_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * cache resource\n\t * Must be a subclass of \\Smarty\\Cac"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "cacheResource"
; ";"
comment "/**\n\t * config type\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_config_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * check If-Modified-Since headers\n\t *\n\t * @var boolean"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "cache_modified_check"
= "="
boolean "false"
; ";"
comment "/**\n\t * registered plugins\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_plugins"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered objects\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_objects"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered classes\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_classes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered resources\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "registered_resources"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * registered cache resources\n\t *\n\t * @var array\n\t * @d"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "registered_cache_resources"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * default modifier\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "default_modifiers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * autoescape variable output\n\t *\n\t * @var boolean\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "escape_html"
= "="
boolean "false"
; ";"
comment "/**\n\t * start time for execution time calculation\n\t *\n\t * @v"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "start_time"
= "="
integer "0"
; ";"
comment "/**\n\t * internal flag to enable parser debugging\n\t *\n\t * @va"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_parserdebug"
= "="
boolean "false"
; ";"
comment "/**\n\t * Debug object\n\t *\n\t * @var \\Smarty\\Debug\n\t */"
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_debug"
= "="
null "null"
; ";"
comment "/**\n\t * template directory\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "template_dir"
= "="
array_creation_expression
[ "["
array_element_initializer
string
' "'"
string_content "./templates/"
' "'"
] "]"
; ";"
comment "/**\n\t * flags for normalized template directory entries\n\t *\n"...
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "_processedTemplateDir"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * config directory\n\t *\n\t * @var array\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "config_dir"
= "="
array_creation_expression
[ "["
array_element_initializer
string
' "'"
string_content "./configs/"
' "'"
] "]"
; ";"
comment "/**\n\t * flags for normalized template directory entries\n\t *\n"...
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "_processedConfigDir"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * compile directory\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "compile_dir"
= "="
string
' "'"
string_content "./templates_c/"
' "'"
; ";"
comment "/**\n\t * cache directory\n\t *\n\t * @var string\n\t */"
property_declaration
visibility_modifier
protected "protected"
property_element
variable_name
$ "$"
name "cache_dir"
= "="
string
' "'"
string_content "./cache/"
' "'"
; ";"
comment "/**\n\t * PHP7 Compatibility mode\n\t *\n\t * @var bool\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "isMutingUndefinedOrNullWarnings"
= "="
boolean "false"
; ";"
comment "/**\n\t * Cache of loaded resource handlers.\n\t *\n\t * @var arra"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_resource_handlers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Cache of loaded cacheresource handlers.\n\t *\n\t * @var"...
property_declaration
visibility_modifier
public "public"
property_element
variable_name
$ "$"
name "_cacheresource_handlers"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * List of extensions\n\t *\n\t * @var ExtensionInterface[]"...
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "extensions"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * @var BCPluginsAdapter\n\t */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "BCPluginsAdapter"
; ";"
comment "/**\n\t * Initialize new Smarty object\n\t */"
method_declaration (+206 nodes collapsed)
comment "/**\n\t * Load an additional extension.\n\t *\n\t * @return void\n\t"...
method_declaration (+33 nodes collapsed)
comment "/**\n\t * Returns all loaded extensions\n\t *\n\t * @return array|"...
method_declaration (+23 nodes collapsed)
comment "/**\n\t * Replace the entire list extensions, allowing you to "...
method_declaration (+32 nodes collapsed)
comment "/**\n\t * Check if a template resource exists\n\t *\n\t * @param s"...
method_declaration (+55 nodes collapsed)
comment "/**\n\t * Loads security class and enables security\n\t *\n\t * @p"...
method_declaration (+46 nodes collapsed)
comment "/**\n\t * Disable security\n\t *\n\t * @return static current Smar"...
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Add template directory(s)\n\t *\n\t * @param string|arra"...
method_declaration (+301 nodes collapsed)
comment "/**\n\t * Get template directories\n\t *\n\t * @param mixed $index"...
method_declaration (+164 nodes collapsed)
comment "/**\n\t * Set template directory\n\t *\n\t * @param string|array $"...
method_declaration (+119 nodes collapsed)
comment "/**\n\t * Adds a template directory before any existing direct"...
method_declaration (+89 nodes collapsed)
comment "/**\n\t * Add config directory(s)\n\t *\n\t * @param string|array "...
method_declaration (+46 nodes collapsed)
comment "/**\n\t * Get config directory\n\t *\n\t * @param mixed $index ind"...
method_declaration (+36 nodes collapsed)
comment "/**\n\t * Set config directory\n\t *\n\t * @param $config_dir\n\t *\n"...
method_declaration (+34 nodes collapsed)
comment "/**\n\t * Registers plugin to be used in templates\n\t *\n\t * @pa"...
method_declaration (+187 nodes collapsed)
comment "/**\n\t * Returns plugin previously registered using ::registe"...
method_declaration (+82 nodes collapsed)
comment "/**\n\t * Unregisters plugin previously registered using ::reg"...
method_declaration (+81 nodes collapsed)
comment "/**\n\t * Adds directory of plugin files\n\t *\n\t * @param null|a"...
method_declaration (+128 nodes collapsed)
comment "/**\n\t * Get plugin directories\n\t *\n\t * @return array list of"...
method_declaration (+38 nodes collapsed)
comment "/**\n\t * Set plugins directory\n\t *\n\t * @param string|array $p"...
method_declaration (+108 nodes collapsed)
comment "/**\n\t * Registers a default plugin handler\n\t *\n\t * @param ca"...
method_declaration (+96 nodes collapsed)
comment "/**\n\t * Get compiled directory\n\t *\n\t * @return string path t"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t *\n\t * @param string $compile_dir directory to store co"...
method_declaration (+53 nodes collapsed)
comment "/**\n\t * Get cache directory\n\t *\n\t * @return string path of c"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t * Set cache directory\n\t *\n\t * @param string $cache_dir"...
method_declaration (+53 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "templates"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Creates a template object\n\t *\n\t * @param string $tem"...
method_declaration (+166 nodes collapsed)
comment "/**\n\t * Get unique template id\n\t *\n\t * @param string $resour"...
method_declaration (+236 nodes collapsed)
comment "/**\n\t * Normalize path\n\t * - remove /./ and /../\n\t * - mak"...
method_declaration (+441 nodes collapsed)
comment "/**\n\t * @param boolean $use_sub_dirs\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param int $error_reporting\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $escape_html\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Return auto_literal flag\n\t *\n\t * @return boolean\n\t *"...
method_declaration
visibility_modifier
public "public"
function "function"
name "getAutoLiteral"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "auto_literal"
; ";"
} "}"
comment "/**\n\t * Set auto_literal flag\n\t *\n\t * @param boolean $auto_l"...
method_declaration (+30 nodes collapsed)
comment "/**\n\t * @param boolean $force_compile\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $merge_compiled_includes\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Get left delimiter\n\t *\n\t * @return string\n\t */"
method_declaration
visibility_modifier
public "public"
function "function"
name "getLeftDelimiter"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "left_delimiter"
; ";"
} "}"
comment "/**\n\t * Set left delimiter\n\t *\n\t * @param string $left_delim"...
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Get right delimiter\n\t *\n\t * @return string $right_de"...
method_declaration
visibility_modifier
public "public"
function "function"
name "getRightDelimiter"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "right_delimiter"
; ";"
} "}"
comment "/**\n\t * Set right delimiter\n\t *\n\t * @param string\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $debugging\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_overwrite\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_booleanize\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $config_read_hidden\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param boolean $compile_locking\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * @param string $default_resource_type\n\t */"
method_declaration (+28 nodes collapsed)
comment "/**\n\t * Test install\n\t *\n\t * @param null $errors\n\t */"
method_declaration (+42 nodes collapsed)
comment "/**\n\t * Get Smarty object\n\t *\n\t * @return static\n\t */"
method_declaration
visibility_modifier
public "public"
function "function"
name "getSmarty"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
variable_name
$ "$"
name "this"
; ";"
} "}"
comment "/**\n\t * Normalize and set directory string\n\t *\n\t * @param st"...
method_declaration (+71 nodes collapsed)
comment "/**\n\t * Normalize template_dir or config_dir\n\t *\n\t * @param "...
method_declaration (+322 nodes collapsed)
comment "/**\n\t * Mutes errors for \"undefined index\", \"undefined array"...
method_declaration (+24 nodes collapsed)
comment "/**\n\t * Indicates if Smarty will mute errors for \"undefined "...
method_declaration (+23 nodes collapsed)
comment "/**\n\t * Empty cache for a specific template\n\t *\n\t * @param s"...
method_declaration (+78 nodes collapsed)
comment "/**\n\t * Empty cache folder\n\t *\n\t * @param integer $exp_time "...
method_declaration (+44 nodes collapsed)
comment "/**\n\t * Delete compiled template file\n\t *\n\t * @param string "...
method_declaration (+1124 nodes collapsed)
comment "/**\n\t * Compile all template files\n\t *\n\t * @param string $ex"...
method_declaration (+72 nodes collapsed)
comment "/**\n\t * Compile all config files\n\t *\n\t * @param string $exte"...
method_declaration (+75 nodes collapsed)
comment "/**\n\t * Compile all template or config files\n\t *\n\t * @param "...
method_declaration (+757 nodes collapsed)
comment "/**\n\t * check client side cache\n\t *\n\t * @param \\Smarty\\Templ"...
method_declaration (+493 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+87 nodes collapsed)
comment "/**\n\t * Run pre-filters over template source\n\t *\n\t * @param "...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Run post-filters over template's compiled code\n\t *\n\t"...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Run filters over template output\n\t *\n\t * @param stri"...
method_declaration (+95 nodes collapsed)
comment "/**\n\t * Writes file in a safe way to disk\n\t *\n\t * @param str"...
method_declaration (+576 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "runtimes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
comment "/**\n\t * Loads and returns a runtime extension or null if not"...
method_declaration (+255 nodes collapsed)
comment "/**\n\t * Indicates if a runtime is available.\n\t *\n\t * @param "...
method_declaration (+66 nodes collapsed)
comment "/**\n\t * @return callable|null\n\t */"
method_declaration (+24 nodes collapsed)
comment "/**\n\t * load a filter of specified type and name\n\t *\n\t * @pa"...
method_declaration (+359 nodes collapsed)
comment "/**\n\t * load a filter of specified type and name\n\t *\n\t * @pa"...
method_declaration (+68 nodes collapsed)
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "_caching_type"
= "="
string
' "'"
string_content "file"
' "'"
; ";"
comment "/**\n\t * @param $type\n\t *\n\t * @return void\n\t * @deprecated si"...
method_declaration (+60 nodes collapsed)
comment "/**\n\t * @return string\n\t * @deprecated since 5.0\n\t */"
method_declaration (+44 nodes collapsed)
comment "/**\n\t * Registers a resource to fetch a template\n\t *\n\t * @pa"...
method_declaration (+86 nodes collapsed)
comment "/**\n\t * Unregisters a resource to fetch a template\n\t *\n\t * @"...
method_declaration (+85 nodes collapsed)
method_declaration (+105 nodes collapsed)
comment "/**\n\t * Registers a filter function\n\t *\n\t * @param string $t"...
method_declaration (+314 nodes collapsed)
comment "/**\n\t * Return internal filter name\n\t *\n\t * @param callback "...
method_declaration (+123 nodes collapsed)
comment "/**\n\t * Unregisters a filter function. Smarty cannot unregis"...
method_declaration (+195 nodes collapsed)
comment "/**\n\t * Add default modifiers\n\t *\n\t * @param array|string $m"...
method_declaration (+86 nodes collapsed)
comment "/**\n\t * Get default modifiers\n\t *\n\t * @return array list of "...
method_declaration
visibility_modifier
public "public"
function "function"
name "getDefaultModifiers"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "default_modifiers"
; ";"
} "}"
comment "/**\n\t * Set default modifiers\n\t *\n\t * @param array|string $m"...
method_declaration (+38 nodes collapsed)
comment "/**\n\t * @return Cacheresource\\Base\n\t */"
method_declaration (+27 nodes collapsed)
comment "/**\n\t * @param Cacheresource\\Base $cacheResource\n\t */"
method_declaration (+36 nodes collapsed)
comment "/**\n\t * fetches a rendered Smarty template\n\t *\n\t * @param st"...
method_declaration (+63 nodes collapsed)
comment "/**\n\t * displays a Smarty template\n\t *\n\t * @param string $te"...
method_declaration (+62 nodes collapsed)
comment "/**\n\t * @param $resource_name\n\t * @param $cache_id\n\t * @para"...
method_declaration (+468 nodes collapsed)
comment "/**\n\t * test if cache is valid\n\t *\n\t * @param null|string|Te"...
method_declaration (+63 nodes collapsed)
comment "/**\n\t * @param $template\n\t * @param $cache_id\n\t * @param $co"...
method_declaration (+105 nodes collapsed)
comment "/**\n\t * Sets if Smarty should check If-Modified-Since header"...
method_declaration (+34 nodes collapsed)
} "}"