libs/plugins/function.cycle.php-Dateireferenz

gehe zum Quellcode dieser Datei

Namensbereiche

namespace  Smarty

Funktionen

 smarty_function_cycle ($params, &$smarty)


Dokumentation der Funktionen

smarty_function_cycle ( params,
&$  smarty 
)

Smarty {cycle} function plugin

Type: function
Name: cycle
Date: May 3, 2002
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}
 
{cycle} (Smarty online manual) Monte Ohrt
Autor:
credit to Mark Priatel <mpriatel@rogers.com>

credit to Gerard <gerard@interfold.com>

credit to Jason Sweat <jsweat_php@yahoo.com>

Version:
1.3
Parameter:
array 
Smarty 
Rückgabe:
string|null

Definiert in Zeile 44 der Datei function.cycle.php.

Benutzt $smarty.

Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen