| 4 | * Smarty plugin | * Smarty plugin | 
| 5 | * ------------------------------------------------------------- | * ------------------------------------------------------------- | 
| 6 | * Type:     function | * Type:     function | 
| 7 | * Name:     cycle | * Name:     debug | 
| 8 | * Version:  1.3 | * Version:  1.0 | 
| 9 | * Date:     May 3, 2002 | * Date:     July 1, 2002 | 
| 10 | * Author:       Monte Ohrt <monte@ispi.net> | * Author:       Monte Ohrt <monte@ispi.net> | 
| 11 | * Credits:  Mark Priatel <mpriatel@rogers.com> | * Purpose:  popup debug window | 
|  | *           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} |  | 
| 12 | * ------------------------------------------------------------- | * ------------------------------------------------------------- | 
| 13 | */ | */ | 
| 14 | function smarty_function_debug($params, &$smarty) | function smarty_function_debug($params, &$smarty) |