-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathInvalidateReports.php
60 lines (55 loc) · 2 KB
/
InvalidateReports.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
<?php
/**
* InnoCraft - the company of the makers of Piwik Analytics, the free/libre analytics platform
*
* @link https://www.innocraft.com
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\InvalidateReports;
/**
*
*/
class InvalidateReports extends \Piwik\Plugin
{
/**
* @see Piwik_Plugin::registerEvents
*/
public function registerEvents()
{
return array(
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys'
);
}
/**
* Adds required CSS files
* @param $stylesheets
*/
public function getStylesheetFiles(&$stylesheets)
{
$stylesheets[] = "plugins/InvalidateReports/stylesheets/styles.less";
}
/**
* Adds translation keys required in JS
* @param $translationKeys
*/
public function getClientSideTranslationKeys(&$translationKeys)
{
$translationKeys[] = "InvalidateReports_AllWebsites";
$translationKeys[] = "InvalidateReports_AllSegments";
$translationKeys[] = "InvalidateReports_InvalidationSuccess";
$translationKeys[] = "InvalidateReports_InvalidateAPIReturn";
$translationKeys[] = 'InvalidateReports_ConfirmInvalidation';
$translationKeys[] = 'InvalidateReports_ChooseWebsite';
$translationKeys[] = 'InvalidateReports_ChooseSegment';
$translationKeys[] = 'InvalidateReports_ChooseRange';
$translationKeys[] = 'InvalidateReports_InvalidateReports';
$translationKeys[] = 'General_Segment';
$translationKeys[] = 'General_Website';
$translationKeys[] = 'InvalidateReports_InvalidateHistoricalReports';
$translationKeys[] = 'InvalidateReports_PageDescription';
$translationKeys[] = 'InvalidateReports_ExamplesCustomReports';
$translationKeys[] = 'InvalidateReports_ExamplesFunnels';
$translationKeys[] = 'InvalidateReports_ExamplesRawData';
}
}