1 | <?php |
||
10 | class GeckoMeter extends Widget |
||
11 | { |
||
12 | protected $dataset; |
||
13 | protected $value; |
||
14 | protected $reversed = false; |
||
15 | |||
16 | 5 | public function __construct() |
|
17 | { |
||
18 | 5 | $this->dataset = array(); |
|
19 | 5 | } |
|
20 | |||
21 | 2 | public function setReversed($reversed) |
|
22 | { |
||
23 | 2 | $this->reversed = $reversed; |
|
24 | |||
25 | 2 | return $this; |
|
26 | } |
||
27 | |||
28 | 2 | public function getReversed() |
|
29 | { |
||
30 | 2 | return $this->reversed; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param $value |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | 2 | public function setValue($value) |
|
44 | |||
45 | 2 | public function getValue() |
|
49 | |||
50 | 3 | public function getMinData() |
|
54 | |||
55 | 2 | public function setMinData(Entry $entry) |
|
61 | |||
62 | 2 | public function getMaxData() |
|
66 | |||
67 | 2 | public function setMaxData(Entry $entry) |
|
73 | |||
74 | 1 | public function getData() |
|
88 | |||
89 | 2 | protected function setEntry($level, $entry) |
|
95 | |||
96 | 3 | protected function getEntry($level) |
|
104 | } |
||
105 |