ARTISAN PROJECT ArtisanSmarty
plugins
[ class tree: ArtisanSmarty ] [ index: ArtisanSmarty ] [ all elements ]

Procedural File: function.cycle.php

Source Location: /ccdb/bbs/lib/smarty/plugins/function.cycle.php

Page Details

ArtisanSmarty plugin

Functions
smarty_function_cycle  [line 57]

string|null smarty_function_cycle( array $params, Smarty &$smarty  )

ArtisanSmarty <%cycle%> function plugin

Type: function
Name: cycle
Date: 2005/06/10 23:54
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}
 

Parameters:
array   $params: 
Smarty   &$smarty: 

Information Tags:
Author:  Akito<mailto:akito-artisan@five-foxes.com>
Since:  2005/06/10 23:54
Version:  1.3
Author:  credit to Jason Sweat <mailto:jsweat_php@yahoo.com>
Author:  credit to Gerard <mailto:gerard@interfold.com>
Author:  Monte Ohrt <at ohrt dot com>
Author:  credit to Mark Priatel <mailto:mpriatel@rogers.com>
Link:  {cycle} (Smarty online manual)

[ Top ]


Documentation generated on Thu, 04 Jan 2007 17:47:00 +0900