Parser.php
system/View/Parser.php
1 class
22 methods
class Parser
Class for parsing pseudo-vars
__construct
(ViewConfig $config, ?string $viewPath = null, $loader = null, ?bool $debug = null, ?LoggerInterface $logger = null, )
render
(string $view, ?array $options = null, ?bool $saveData = null)
renderString
(string $template, ?array $options = null, ?bool $saveData = null)
setData
(array $data = [], ?string $context = null)
parse
(string $template, array $data = [], ?array $options = null)
parseSingle
(string $key, string $val)
parsePair
(string $variable, array $data, string $template)
parseComments
(string $template)
extractNoparse
(string $template)
insertNoparse
(string $template)
parseConditionals
(string $template)
setDelimiters
($leftDelimiter = '{', $rightDelimiter = '}')
setConditionalDelimiters
($leftDelimiter = '{', $rightDelimiter = '}')
replaceSingle
($pattern, $content, $template, bool $escape = false)
string
($matches)
prepareReplacement
(array $matches, string $replace, bool $escape = true)
shouldAddEscaping
(string $key)
applyFilters
(string $replace, array $filters)
parsePlugins
(string $template)
addPlugin
(string $alias, callable $callback, bool $isPair = false)
removePlugin
(string $alias)
objectToArray
($value)