Jelix 1.7.18

block.ifctrltype.php

Tags
subpackage

jtpl_plugin

author

Dominique Papin

author

Laurent Jouanneau

copyright

2008 Dominique Papin

copyright

2020 Laurent Jouanneau

see
https://jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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

Return values
string

the php code corresponding to the begin or end of the block

Search results