1 | <?php |
||
9 | class LangCollectorTask extends BuildTask { |
||
|
|||
10 | |||
11 | protected $title = "Lang Collector Task"; |
||
12 | |||
13 | protected $description = "Parameters: |
||
14 | - module: One or more modules to limit collection (comma-separated) |
||
15 | - merge: Merge new strings with existing ones already defined (default: FALSE) |
||
16 | - example: /dev/tasks/LangCollectorTask \"module=mysite,themes/default&merge=true\" |
||
17 | "; |
||
18 | |||
19 | /** |
||
20 | * Merge the same created entities if task is running again |
||
21 | * |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $merge = false; |
||
25 | |||
26 | /** |
||
27 | * Given modules from the user |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $module = []; |
||
32 | |||
33 | /** |
||
34 | * Text Collector instance to parse an entities |
||
35 | * |
||
36 | * @var i18nTextCollector |
||
37 | */ |
||
38 | protected $textCollector; |
||
39 | |||
40 | /** |
||
41 | * Initialize within permissions |
||
42 | * |
||
43 | * @return SS_HTTPResponse |
||
44 | */ |
||
45 | public function init() { |
||
53 | |||
54 | public function run($request) { |
||
68 | |||
69 | /** |
||
70 | * Run text collector |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | protected function runCollector() { |
||
100 | |||
101 | /** |
||
102 | * Write output message |
||
103 | * |
||
104 | * @param string $message |
||
105 | * |
||
106 | * @return void |
||
107 | */ |
||
108 | protected function writeMessage($message) { |
||
111 | |||
112 | /** |
||
113 | * Collect parameters from given options array and merge |
||
114 | * it with class properties |
||
115 | * |
||
116 | * @param array $options |
||
117 | * |
||
118 | * @return void |
||
119 | * @throws EmptyModuleException |
||
120 | * @throws InvalidLocaleException |
||
121 | */ |
||
122 | protected function mergeWith($options = []) { |
||
133 | } |
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.