-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAPI.php
More file actions
28 lines (18 loc) · 715 Bytes
/
API.php
File metadata and controls
28 lines (18 loc) · 715 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
<?php
namespace Piwik\Plugins\TrackingCodeCustomizer;
class API extends \Piwik\Plugin\API
{
private static $plugin_name = 'TrackingCodeCustomizer';
public function getSettings()
{
$outParams = array();
$params = array("idSite","piwikUrl","options","optionsBeforeTrackerUrl","httpsPiwikUrl","protocol","piwikJs", "piwikPhp","paqVariable","removePiwikBranding");
$settings = new Settings(self::$plugin_name);
foreach($params as $param){
$value = $settings->{$param}->getValue();
if(!empty($value))
$outParams[$param] = $value;
}
return $outParams;
}
}