forked from scottbedard/analyticsextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
53 lines (49 loc) · 1.56 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
<?php namespace Bedard\AnalyticsExtension;
use System\Classes\PluginBase;
/**
* AnalyticsExtension Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* @var array Require the RainLab.GoogleAnalytics plugin
*/
public $require = ['RainLab.GoogleAnalytics'];
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Analytics Extension',
'description' => 'bedard.analyticsextension::lang.strings.plugin_description',
'author' => 'Scott Bedard',
'icon' => 'icon-bar-chart',
'homepage' => 'https://github.com/scottbedard/analyticsextension'
];
}
/**
* Returns the extra report widgets.
*
* @return array
*/
public function registerReportWidgets()
{
return [
'Bedard\AnalyticsExtension\ReportWidgets\BarChart' => [
'label' => 'bedard.analyticsextension::lang.strings.barchart_label',
'context' => 'dashboard'
],
'Bedard\AnalyticsExtension\ReportWidgets\PercentageChart' => [
'label' => 'bedard.analyticsextension::lang.strings.percentage_label',
'context' => 'dashboard'
],
'Bedard\AnalyticsExtension\ReportWidgets\PieChart' => [
'label' => 'bedard.analyticsextension::lang.strings.piechart_label',
'context' => 'dashboard'
]
];
}
}