v1.0.0
English

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, ) public
render (string $view, ?array $options = null, ?bool $saveData = null) public
renderString (string $template, ?array $options = null, ?bool $saveData = null) public
setData (array $data = [], ?string $context = null) public
parse (string $template, array $data = [], ?array $options = null) protected
parseSingle (string $key, string $val) protected
parsePair (string $variable, array $data, string $template) protected
parseComments (string $template) protected
extractNoparse (string $template) protected
insertNoparse (string $template) public
parseConditionals (string $template) protected
setDelimiters ($leftDelimiter = '{', $rightDelimiter = '}') public
setConditionalDelimiters ($leftDelimiter = '{', $rightDelimiter = '}') public
replaceSingle ($pattern, $content, $template, bool $escape = false) protected
string ($matches) public
prepareReplacement (array $matches, string $replace, bool $escape = true) protected
shouldAddEscaping (string $key) public
applyFilters (string $replace, array $filters) protected
parsePlugins (string $template) protected
addPlugin (string $alias, callable $callback, bool $isPair = false) public
removePlugin (string $alias) public
objectToArray ($value) protected
phpDG v1.0.0 Parser.php 662 files 498 classes 763 fn
Generated