block.formsubmits.php
Tags
Table of Contents
- jtpl_block_html_formsubmits() : string
- a block to loop over submit button list of a form and to display them
Functions
jtpl_block_html_formsubmits()
a block to loop over submit button list of a form and to display them
jtpl_block_html_formsubmits(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string
usage : {formsubmits} here content to display one submit {/formsubmits} It accept also some parameters
- an optional jFormsBase object if the {formsubmits} is outside a {form} block
- an optional array of submit control names : only these controls will be displayed
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $param : array<string|int, mixed> = array()
-
empty array or 0=>jFormsBase object or 0=>jFormsBase object, 1=>array of submit names or 0=>array of submit names
Tags
Return values
string —the php code corresponding to the begin or end of the block