2021-04-14 17:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 11:52:11 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-14 17:58:40 +02:00
|
|
|
namespace Analytics\Config;
|
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Analytics extends BaseConfig
|
|
|
|
{
|
|
|
|
/**
|
2021-05-19 18:35:13 +02:00
|
|
|
* Gateway to analytic routes. By default, all analytics routes will be under `/analytics` path
|
2021-04-14 17:58:40 +02:00
|
|
|
*/
|
2021-05-18 19:16:36 +02:00
|
|
|
public string $gateway = 'analytics';
|
2021-04-14 17:58:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
* Route filters options
|
|
|
|
* --------------------------------------------------------------------
|
2021-05-06 16:00:48 +02:00
|
|
|
* @var array<string, string>
|
2021-04-14 17:58:40 +02:00
|
|
|
*/
|
2021-05-18 19:16:36 +02:00
|
|
|
public array $routeFilters = [
|
2021-04-14 17:58:40 +02:00
|
|
|
'analytics-full-data' => '',
|
|
|
|
'analytics-data' => '',
|
|
|
|
'analytics-filtered-data' => '',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
2021-05-12 16:00:25 +02:00
|
|
|
* get the full audio file
|
|
|
|
*
|
|
|
|
* @param string|string[] $audioFilePath
|
2021-04-14 17:58:40 +02:00
|
|
|
*/
|
2021-05-19 18:35:13 +02:00
|
|
|
public function getAudioFileUrl(string | array $audioFilePath): string
|
2021-04-14 17:58:40 +02:00
|
|
|
{
|
2021-05-03 19:39:58 +02:00
|
|
|
return base_url($audioFilePath);
|
2021-04-14 17:58:40 +02:00
|
|
|
}
|
|
|
|
}
|