1<?php
2
3class CSSCounter {
4  var $_name;
5  var $_value;
6
7  function CSSCounter($name) {
8    $this->set_name($name);
9    $this->reset();
10  }
11
12  function get() {
13    return $this->_value;
14  }
15
16  function get_name() {
17    return $this->_name;
18  }
19
20  function reset() {
21    $this->_value = 0;
22  }
23
24  function set($value) {
25    $this->_value = $value;
26  }
27
28  function set_name($value) {
29    $this->_name = $value;
30  }
31}
32
33?>