function.counter_init.php
Tags
Table of Contents
- jtpl_function_common_counter_init() : mixed
- function plugin : Init a counter.
Functions
jtpl_function_common_counter_init()
function plugin : Init a counter.
jtpl_function_common_counter_init(jTpl $tpl[, string $name = '' ][, string $type = '0' ][, string|int $start = 1 ][, int $incr = 1 ]) : mixed
{counter_init 'name', 'type', 'start', 'incr'}
Parameters
- $tpl : jTpl
-
The template
- $name : string = ''
-
The name of the counter
- $type : string = '0'
-
The type of the counter ('0', '00', 'aa' or 'AA').
- $start : string|int = 1
-
Where the counter start. String if type == 'aa'/'AA'
- $incr : int = 1
-
How many time the counter is increased on each call