Smarty_Compiler_Include_If_Exists
extends Smarty_Internal_CompileBase
in package
Smarty Plugin Compile Include If Exists for Smarty v3
Compiles the {include_if_exists} tag
Inspired by Liu Song's similar plugin for Smarty v2
Tags
Table of Contents
- $includeCompiler : Smarty_Internal_Compile_Include
- Instance of {include} compiler
- compile() : string
- Compiles code for the {include_if_exists} tag
Properties
$includeCompiler
Instance of {include} compiler
public
static Smarty_Internal_Compile_Include
$includeCompiler
= \null
Methods
compile()
Compiles code for the {include_if_exists} tag
public
compile(array<string|int, mixed> $args, Smarty_Internal_SmartyTemplateCompiler $compiler[, array<string|int, mixed> $parameter = null ]) : string
Parameters
- $args : array<string|int, mixed>
-
array with attributes from parser
- $compiler : Smarty_Internal_SmartyTemplateCompiler
-
compiler object
- $parameter : array<string|int, mixed> = null
-
array with compilation parameter
Return values
string —compiled code