Smarty_Compiler_Case
extends Smarty_Internal_CompileBase
in package
Switch case statement plugin for smarty.
Tags
Table of Contents
- $optional_attributes : mixed
- $required_attributes : mixed
- $shorttag_order : mixed
- compile() : string
- Print out a case line for this switch.
Properties
$optional_attributes
public
mixed
$optional_attributes
= array('break')
$required_attributes
public
mixed
$required_attributes
= array('value')
$shorttag_order
public
mixed
$shorttag_order
= array('value', 'break')
Methods
compile()
Print out a case line for this switch.
public
compile( $args, $compiler) : string
A condition must be passed to match on. This can only go in {switch} tags. If break is passed, a {break} will be rendered before the next case.