block.ifctrltype.php
Tags
Table of Contents
- jtpl_block_html_ifctrltype() : string
- a special if block to test easily the current control type TO BE USED inside a {formcontrols} block.
Functions
jtpl_block_html_ifctrltype()
a special if block to test easily the current control type TO BE USED inside a {formcontrols} block.
jtpl_block_html_ifctrltype(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $params = array() ]) : string
{ifctrltype 'type1','type2',...} some tpl {else} some other tpl {/ifctrltype}
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $params : array<string|int, mixed> = array()
-
0=>'type',etc. to match against current control type
Tags
Return values
string —the php code corresponding to the begin or end of the block