1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
5
<!-- template designed by Marco Von Ballmoos -->
6
<title>Docs for page function.cycle.php</title>
7
<link rel="stylesheet" href="../../media/stylesheet.css" />
8
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
11
<div class="page-body">
12
<h2 class="file-name">/legacy/smarty/plugins/function.cycle.php</h2>
14
<a name="sec-description"></a>
15
<div class="info-box">
16
<div class="info-box-title">Description</div>
18
<span class="disabled">Description</span> |
19
<a href="#sec-functions">Functions</a>
21
<div class="info-box-body">
22
<!-- ========== Info from phpDoc block ========= -->
23
<p class="short-description">Smarty plugin</p>
32
<a name="sec-functions"></a>
33
<div class="info-box">
34
<div class="info-box-title">Functions</div>
36
<a href="#sec-description">Description</a> |
37
<span class="disabled">Functions</span>
39
<div class="info-box-body">
40
<a name="functionsmarty_function_cycle" id="functionsmarty_function_cycle"><!-- --></a>
44
<span class="method-title">smarty_function_cycle</span> (line <span class="line-number">44</span>)
47
<!-- ========== Info from phpDoc block ========= -->
48
<p class="short-description">Smarty {cycle} function plugin</p>
49
<p class="description"><p>Type: function<br /> Name: cycle<br /> Date: May 3, 2002<br /> Purpose: cycle through given values<br /> Input: <ul><li>name = name of cycle (optional)</li><li>values = comma separated list of values to cycle,
50
or an array of values to cycle
51
(this can be left out for subsequent calls)</li><li>reset = boolean - resets given var to true</li><li>print = boolean - print var or not. default is true</li><li>advance = boolean - whether or not to advance the cycle</li><li>delimiter = the value delimiter, default is ","</li><li>assign = boolean, assigns to template var instead of
52
printed.</li></ul> Examples:<br /> <pre> {cycle values="#eeeeee,#d0d0d0d"}
53
{cycle name=row values="one,two,three" reset=true}
54
{cycle name=row}</pre></p></p>
56
<li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li>
57
<li><span class="field">author:</span> credit to Mark Priatel <<a href="mailto:mpriatel@rogers.com">mpriatel@rogers.com</a>></li>
58
<li><span class="field">author:</span> credit to Gerard <<a href="mailto:gerard@interfold.com">gerard@interfold.com</a>></li>
59
<li><span class="field">author:</span> credit to Jason Sweat <<a href="mailto:jsweat_php@yahoo.com">jsweat_php@yahoo.com</a>></li>
60
<li><span class="field">version:</span> 1.3</li>
61
<li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.function.cycle.php">{cycle}
62
(Smarty online manual)</a></li>
65
<div class="method-signature">
66
<span class="method-result">string|null</span>
67
<span class="method-name">
70
(<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Smarty.html">Smarty</a></span> <span class="var-name">&$smarty</span>)
73
<ul class="parameters">
75
<span class="var-type">array</span>
76
<span class="var-name">$params</span> </li>
78
<span class="var-type"><a href="../../Smarty/Smarty.html">Smarty</a></span>
79
<span class="var-name">&$smarty</span> </li>
87
<p class="notes" id="credit">
88
Documentation generated on Tue, 09 Aug 2011 09:04:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
b'\\ No newline at end of file'