Jelix 1.6.40

function.counter_init.php

Tags
subpackage

jtpl_plugin

author

Thibault Piront (nuKs)

copyright

2007 Thibault Piront

link
http://jelix.org/
licence

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

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

Return values
mixed

Search results