mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 19:17:45 +02:00
feat: add unique listeners analytics
- add unique listener - add some charts - correct minor bugs
This commit is contained in:
parent
9660aa97c8
commit
3a4925816f
24 changed files with 500 additions and 188 deletions
|
|
@ -23,14 +23,15 @@ class AnalyticsData extends BaseController
|
|||
|
||||
public function _remap($method, ...$params)
|
||||
{
|
||||
if (count($params) > 2) {
|
||||
if (count($params) > 1) {
|
||||
if (!($this->podcast = (new PodcastModel())->find($params[0]))) {
|
||||
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound(
|
||||
'Podcast not found: ' . $params[0]
|
||||
);
|
||||
}
|
||||
$this->className = '\App\Models\Analytics' . $params[1] . 'Model';
|
||||
$this->methodName = 'getData' . $params[2];
|
||||
$this->methodName =
|
||||
'getData' . (empty($params[2]) ? '' : $params[2]);
|
||||
if (count($params) > 3) {
|
||||
if (
|
||||
!($this->episode = (new EpisodeModel())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue