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