forked from ryanmitchell/ti-ext-reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtension.php
50 lines (43 loc) · 1.14 KB
/
Extension.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
<?php namespace Thoughtco\Reports;
use DB;
use Event;
use Admin\Widgets\Form;
use System\Classes\BaseExtension;
use Thoughtco\Irtouch\Models\Settings;
use Thoughtco\Irtouch\Classes\LocationRequest;
use Thoughtco\Irtouch\Resources\TouchJsonClient;
/**
* Extension Information File
**/
class Extension extends BaseExtension
{
public function boot()
{
}
public function registerPermissions()
{
return [
'Thoughtco.Reports.View' => [
'description' => 'View reports',
'group' => 'module',
],
];
}
public function registerNavigation()
{
return [
'sales' => [
'child' => [
'reports' => [
'priority' => 10,
'class' => 'pages',
'href' => admin_url('thoughtco/reports/dashboard'),
'title' => lang('lang:thoughtco.reports::default.text_title'),
'permission' => 'Thoughtco.Reports.View',
],
],
],
];
}
}
?>