Class Dwoo_Plugin_counter

Description

Initiates a counter that is incremented every time you call it

  * name : the counter name, define it if you want to have multiple concurrent counters
  * start : the start value, if it's set, it will reset the counter to this value, defaults to 1
  * skip : the value to add to the counter at each call, defaults to 1
  * direction : "up" (default) or "down" to define whether the counter increments or decrements
  * print : if false, the counter will not output the current count, defaults to true
  * assign : if set, the counter is saved into the given variable and does not output anything, overriding the print parameter
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html

Located in /plugins/builtin/functions/counter.php (line 29)

Dwoo_Plugin
   |
   --Dwoo_Plugin_counter
Variable Summary
mixed $counters
Method Summary
void process ([ $name = 'default'], [ $start = null], [ $skip = null], [ $direction = null], [ $print = null], [ $assign = null])
Variables
mixed $counters = array() (line 31)
  • access: protected

Inherited Variables

Inherited from Dwoo_Plugin

Dwoo_Plugin::$dwoo
Methods
process (line 33)
  • access: public
void process ([ $name = 'default'], [ $start = null], [ $skip = null], [ $direction = null], [ $print = null], [ $assign = null])
  • $name
  • $start
  • $skip
  • $direction
  • $print
  • $assign

Inherited Methods

Inherited From Dwoo_Plugin

Dwoo_Plugin::__construct()
Dwoo_Plugin::paramsToAttributes()

Documentation generated on Sun, 03 Aug 2008 15:12:25 +0200 by phpDocumentor 1.4.0