1 | <?php |
||
3 | class FontResizer extends Extension |
||
|
|||
4 | { |
||
5 | protected static $font_size_change = 0.1; |
||
6 | public static function set_font_size_change($v) |
||
10 | |||
11 | protected static $max_font_size = 1.7; |
||
12 | public static function set_max_font_size($v) |
||
16 | |||
17 | protected static $min_font_size = 0.7; |
||
18 | public static function set_min_font_size($v) |
||
22 | |||
23 | public static $allowed_actions = array("increasefontsize", "decreasefontsize", "resetfontsize"); |
||
24 | |||
25 | // *** TEMPLATE FUNCTIONS |
||
26 | |||
27 | public function CurrentFontSizeInPercentages($currentSize = 0) |
||
37 | |||
38 | public function HasAlteredFont() |
||
45 | |||
46 | |||
47 | // *** ACTIONS |
||
48 | |||
49 | public function increasefontsize() |
||
53 | |||
54 | public function decreasefontsize() |
||
58 | |||
59 | public function resetfontsize() |
||
64 | |||
65 | |||
66 | // *** INTERNAL FUNCTIONS |
||
67 | |||
68 | protected function fontAction($change) |
||
80 | |||
81 | |||
82 | protected function currentFontSize() |
||
97 | } |
||
98 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.