-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
58 lines (54 loc) · 1.75 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
<?php namespace Stu177\LeagueTracker;
use App;
use Backend;
use Controller;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'League of Legends Tracker Plugin',
'description' => 'Tracks the games of a summoner.',
'author' => 'stu177',
'icon' => 'icon-rocket'
];
}
public function registerNavigation()
{
return [
'leagueTracker' => [
'label' => 'League Tracker',
'url' => Backend::url('stu177/leagueTracker/summoners'),
'icon' => 'icon-rocket',
'permissions' => ['user.*'],
'order' => 500,
'sideMenu' => [
'summoners' => [
'label' => 'Summoners',
'icon' => 'icon-user',
'url' => Backend::url('stu177/leagueTracker/summoners'),
'permissions' => [''],
],
'matches' => [
'label' => 'Matches',
'icon' => 'icon-history',
'url' => Backend::url('stu177/leagueTracker/matches'),
'permissions' => [''],
]
]
]
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'League Tracker',
'description' => 'Options for League Tracker and configuration.',
'icon' => 'icon-rocket',
'class' => 'stu177\leagueTracker\Models\Settings'
]
];
}
}