mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
38 lines
907 B
PHP
38 lines
907 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Analytics\Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
class Analytics extends BaseConfig
|
|
{
|
|
/**
|
|
* Gateway to analytic routes. By default, all analytics routes will be under `/analytics` path
|
|
*/
|
|
public string $gateway = 'analytics';
|
|
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* Route filters options
|
|
* --------------------------------------------------------------------
|
|
* @var array<string, string>
|
|
*/
|
|
public array $routeFilters = [
|
|
'analytics-full-data' => '',
|
|
'analytics-data' => '',
|
|
'analytics-filtered-data' => '',
|
|
];
|
|
|
|
/**
|
|
* get the full audio file
|
|
*
|
|
* @param string|string[] $audioFilePath
|
|
*/
|
|
public function getAudioFileUrl(string | array $audioFilePath): string
|
|
{
|
|
return base_url($audioFilePath);
|
|
}
|
|
}
|