Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

File: function.cycle.php

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Smarty/plugins/function.cycle.php

Classes:

Page Details:


smarty_function_cycle [line 34]

void smarty_function_cycle( mixed $params, mixed &$smarty)

Smarty plugin

------------------------------------------------------------- Type: function Name: cycle Version: 1.2 Date: May 3, 2002 Author: Monte Ohrt <monte@ispi.net> Credits: Mark Priatel <mpriatel@rogers.com> Gerard <gerard@interfold.com> Jason Sweat <jsweat_php@yahoo.com> Purpose: cycle through given values Input: name = name of cycle (optional) values = comma separated list of values to cycle, or an array of values to cycle (this can be left out for subsequent calls)

reset = boolean - resets given var to true print = boolean - print var or not. default is true advance = boolean - whether or not to advance the cycle delimiter = the value delimiter, default is "," assign = boolean, assigns to template var instead of printed.

Examples: {cycle values="#eeeeee,#d0d0d0d"} {cycle name=row values="one,two,three" reset=true} {cycle name=row} -------------------------------------------------------------



[ Top ]



Documentation generated on Fri, 30 Apr 2004 22:09:44 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.