1 | <?php |
||
9 | class LangEditor extends LeftAndMain implements PermissionProvider { |
||
|
|||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | * @config |
||
14 | */ |
||
15 | private static $menu_title = 'Lang Editor'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * @config |
||
20 | */ |
||
21 | private static $url_segment = 'lang-editor'; |
||
22 | |||
23 | /** |
||
24 | * @var float |
||
25 | * @config |
||
26 | */ |
||
27 | private static $menu_priority = -0.6; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | * @config |
||
32 | */ |
||
33 | private static $allowed_actions = [ |
||
34 | 'FormEntities', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Default configuration of items per page. |
||
39 | * Set "null" if unlimited. |
||
40 | * |
||
41 | * @var int |
||
42 | * @config |
||
43 | */ |
||
44 | private static $items_per_page = 30; |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | public function providePermissions() { |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * @param Member $member |
||
63 | * |
||
64 | * @return int|bool |
||
65 | */ |
||
66 | public function canView($member = null) { |
||
69 | |||
70 | public function init() { |
||
75 | |||
76 | public static function flushCache() { |
||
80 | |||
81 | public function getModules() { |
||
110 | |||
111 | public function getCurrentModule() { |
||
114 | |||
115 | public function getCurrentSearchTerm() { |
||
118 | |||
119 | public function FormEntities() { |
||
147 | } |
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.