Exponent v2.7.2

compiler.switch.php

Interfaces, Classes, Traits and Enums

Smarty_Compiler_Switch
Switch statement plugin for smarty.
Smarty_Compiler_Case
Switch case statement plugin for smarty.
Smarty_Compiler_Default
Switch default statement plugin for smarty.
Smarty_Compiler_Break
Switch break statement plugin for smarty.
Smarty_Compiler_Caseclose
Switch (case) close statement plugin for smarty.
Smarty_Compiler_Switchclose
Switch (switch) close statement plugin for smarty.

Table of Contents

smarty_postfilter_switch()  : string
Filter the template after it is generated to fix switch bugs.

Functions

smarty_postfilter_switch()

Filter the template after it is generated to fix switch bugs.

smarty_postfilter_switch(string $compiled, Smarty_Compiler &$smarty) : string

Remove any spaces after the 'switch () {' code and before the first case. Any tabs or spaces for layout would cause php errors witch this reged will fix.

Parameters
$compiled : string
$smarty : Smarty_Compiler
Return values
string

Search results