$leftDelimiter
$leftDelimiter : string
Left delimiter character for pseudo vars
Class Parser
ClassFormerlyKnownAsTemplateParser
__construct(\Config\View $config, string $viewPath = null, mixed $loader = null, boolean $debug = null, \CodeIgniter\Log\Logger $logger = null)
Constructor
\Config\View | $config | |
string | $viewPath | |
mixed | $loader | |
boolean | $debug | |
\CodeIgniter\Log\Logger | $logger |
renderString(string $template, array $options = null, boolean $saveData = null) : string
Parse a String
Parses pseudo-variables contained in the specified string, replacing them with any data that has already been set.
string | $template | |
array | $options | |
boolean | $saveData |
setData(array $data = array(), string $context = null) : \CodeIgniter\View\RendererInterface
Sets several pieces of view data at once.
In the Parser, we need to store the context here so that the variable is correctly handled within the parsing itself, and contexts (including raw) are respected.
array | $data | |
string | $context | The context to escape it for: html, css, js, url, raw If 'raw', no escaping will happen |
setDelimiters(string $leftDelimiter = '{', string $rightDelimiter = '}') : \CodeIgniter\View\RendererInterface
Over-ride the substitution field delimiters.
string | $leftDelimiter | |
string | $rightDelimiter |