Smarty Internal Plugin Compile Nocacheclose Class

package Smarty
subpackage Compiler

 Methods

Pop closing tag

closeTag(object $compiler, array | string $expectedTag) : mixed
Inherited

Raise an error if this stack-top doesn't match with expected opening tags

inherited_from \Smarty_Internal_CompileBase::closeTag()

Parameters

$compiler

object

compiler object

$expectedTag

arraystring

the expected opening tag names

Returns

mixedany type the opening tag's name or saved data

Compiles code for the {/nocache} tag

compile(array $args, object $compiler) : bool

This tag does not generate compiled output. It only sets a compiler flag.

Parameters

$args

array

array with attributes from parser

$compiler

object

compiler object

Returns

bool

This function checks if the attributes passed are valid

getAttributes(object $compiler, array $attributes) : array
Inherited

The attributes passed for the tag to compile are checked against the list of required and optional attributes. Required attributes must be present. Optional attributes are check against the corresponding list. The keyword '_any' specifies that any attribute will be accepted as valid

inherited_from \Smarty_Internal_CompileBase::getAttributes()

Parameters

$compiler

object

compiler object

$attributes

array

attributes applied to the tag

Returns

arrayof mapped attributes for further processing

Push opening tag name on stack

openTag(object $compiler, string $openTag, mixed $data) 
Inherited

Optionally additional data can be saved on stack

inherited_from \Smarty_Internal_CompileBase::openTag()

Parameters

$compiler

object

compiler object

$openTag

string

the opening tag's name

$data

mixed

optional data saved

 Properties

 

$option_flags : array
Inherited
inherited_from \Smarty_Internal_CompileBase::$$option_flags
 

$optional_attributes : array
Inherited
inherited_from \Smarty_Internal_CompileBase::$$optional_attributes
 

$required_attributes : array
Inherited
inherited_from \Smarty_Internal_CompileBase::$$required_attributes
 

$shorttag_order : array
Inherited
inherited_from \Smarty_Internal_CompileBase::$$shorttag_order