mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
36 lines
984 B
PHP
36 lines
984 B
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use Analytics\Config\Analytics as AnalyticsBase;
|
|
|
|
class Analytics extends AnalyticsBase
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* Route filters options
|
|
* --------------------------------------------------------------------
|
|
*/
|
|
public $routeFilters = [
|
|
'analytics-full-data' => 'permission:podcasts-view,podcast-view',
|
|
'analytics-data' => 'permission:podcasts-view,podcast-view',
|
|
'analytics-filtered-data' => 'permission:podcasts-view,podcast-view',
|
|
];
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
// set the analytics gateway behind the admin gateway.
|
|
// Only logged in users should be able to view analytics
|
|
$this->gateway = config('App')->adminGateway . '/analytics';
|
|
}
|
|
|
|
public function getEnclosureUrl($enclosureUri)
|
|
{
|
|
helper('media');
|
|
|
|
return media_base_url($enclosureUri);
|
|
}
|
|
}
|