mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-24 21:17:19 +02:00
- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
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';
|
|
}
|
|
|
|
/**
|
|
* get the full audio file url
|
|
*
|
|
* @param string|string[] $audioFilePath
|
|
*/
|
|
public function getAudioFileUrl($audioFilePath): string
|
|
{
|
|
helper('media');
|
|
|
|
return media_base_url($audioFilePath);
|
|
}
|
|
}
|