2021-04-14 15:58:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $gateway = 'analytics';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
* Route filters options
|
|
|
|
* --------------------------------------------------------------------
|
2021-05-06 14:00:48 +00:00
|
|
|
* @var array<string, string>
|
2021-04-14 15:58:40 +00:00
|
|
|
*/
|
|
|
|
public $routeFilters = [
|
|
|
|
'analytics-full-data' => '',
|
|
|
|
'analytics-data' => '',
|
|
|
|
'analytics-filtered-data' => '',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
2021-05-03 17:39:58 +00:00
|
|
|
* get the full audio file url
|
2021-04-14 15:58:40 +00:00
|
|
|
*/
|
2021-05-06 14:00:48 +00:00
|
|
|
public function getAudioFileUrl(string $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
|
|
|
}
|
|
|
|
}
|