forked from Hounddd/wn-mallimportexport-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
65 lines (59 loc) · 1.71 KB
/
Plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
namespace Initbiz\MallImportExport;
use Event;
use System\Classes\PluginBase;
/**
* MallImportExport Plugin Information File
*/
class Plugin extends PluginBase
{
public $require = [
'Offline.Mall'
];
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'initbiz.mallimportexport::lang.plugin.name',
'description' => 'initbiz.mallimportexport::lang.plugin.description',
'author' => 'Initbiz',
'icon' => 'icon-retweet',
];
}
/**
* Boot method, called right before the request route.
*
* @return array
*/
public function boot()
{
Event::subscribe(\Initbiz\MallImportExport\EventHandlers\BackendHandler::class);
// Event::subscribe(\Initbiz\MallImportExport\EventHandlers\OfflineMallHandler::class);
}
/**
* Registers any back-end permissions used by this plugin.
*
* @return array
*/
public function registerPermissions()
{
return [
'initbiz.mallimportexport.import' => [
'tab' => 'Mall Import/Export',
'label' => 'initbiz.mallimportexport::lang.permissions.import'
],
'initbiz.mallimportexport.export' => [
'tab' => 'Mall Import/Export',
'label' => 'initbiz.mallimportexport::lang.permissions.export'
],
'initbiz.mallimportexport.export_orders' => [
'tab' => 'Mall Import/Export',
'label' => 'initbiz.mallimportexport::lang.permissions.export_orders'
],
];
}
}