-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAPI.php
More file actions
executable file
·46 lines (39 loc) · 830 Bytes
/
API.php
File metadata and controls
executable file
·46 lines (39 loc) · 830 Bytes
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
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\RerUserDates;
use Piwik\Access;
use Piwik\Version;
/**
* Provided by RerUserDates plugin
*
* @method static \Piwik\Plugins\RerUserDates\API getInstance()
* @package Piwik\Plugins\RerUserDates
*/
class API extends \Piwik\Plugin\API
{
/**
* @return boolean
*/
public function getSettingsCalendars()
{
if ('anonymous' == Access::getInstance()->getLogin())
{
return false;
}
$settings = new SystemSettings;
return $settings->profiles->getValue();
}
/**
* @return string
*/
public function getVersion()
{
return Version::VERSION;
}
}