base
[ class tree: base ] [ index: base ] [ all elements ]

Class: Kimono_Counter

Source Location: /include/misc.php

Class Overview


simple counter class, increments up to max_value, executes the callback function if any and resets to 0


Author(s):

Methods



Class Details

[line 14]
simple counter class, increments up to max_value, executes the callback function if any and resets to 0



Tags:

todo:  should probably check if callback function exists


[ Top ]


Class Methods


constructor __construct [line 21]

Kimono_Counter __construct( mixed $max_value, [mixed $callback = ''], [mixed $callback_arguments = array()])



[ Top ]

method Increment [line 39]

void Increment( )

increment counter value, reset if we hit max_value and call callback function, otherwise just return



[ Top ]

method MaxValue [line 28]

void MaxValue( [mixed $max_value = ''])



[ Top ]


Documentation generated on Fri, 8 Apr 2005 18:27:50 +0200 by phpDocumentor 1.3.0RC3