mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
feat: add analytics and unknown useragents
This commit is contained in:
parent
4651d01a84
commit
ec92e65aa4
44 changed files with 3333 additions and 1987 deletions
24
app/Models/AnalyticsEpisodesByCountryModel.php
Normal file
24
app/Models/AnalyticsEpisodesByCountryModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsEpisodesByCountry
|
||||
* Model for analytics_episodes_by_country table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsEpisodesByCountryModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_episodes_by_country';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsEpisodesByCountry';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsEpisodesByPlayerModel.php
Normal file
24
app/Models/AnalyticsEpisodesByPlayerModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsEpisodesByPlayerModel
|
||||
* Model for analytics_episodes_by_player table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsEpisodesByPlayerModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_episodes_by_player';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsEpisodesByPlayer';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsPodcastsByCountryModel.php
Normal file
24
app/Models/AnalyticsPodcastsByCountryModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsPodcastsByCountryModel
|
||||
* Model for analytics_episodes_by_country table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsPodcastsByCountryModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_episodes_by_country';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsPodcastsByCountry';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsPodcastsByPlayerModel.php
Normal file
24
app/Models/AnalyticsPodcastsByPlayerModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsPodcastsByPlayerModel
|
||||
* Model for analytics_podcasts_by_player table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsPodcastsByPlayerModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_podcasts_by_player';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsPodcastsByPlayer';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsUnknownUseragentsModel.php
Normal file
24
app/Models/AnalyticsUnknownUseragentsModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsUnknownUseragentsModel
|
||||
* Model for analytics_unknown_useragents table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsUnknownUseragentsModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_unknown_useragents';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsUnknownUseragents';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsWebsiteByBrowserModel.php
Normal file
24
app/Models/AnalyticsWebsiteByBrowserModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsWebsiteByBrowserModel
|
||||
* Model for analytics_website_by_browser table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsWebsiteByBrowserModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_website_by_browser';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsWebsiteByBrowser';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsWebsiteByCountryModel.php
Normal file
24
app/Models/AnalyticsWebsiteByCountryModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsWebsiteByCountryModel
|
||||
* Model for analytics_website_by_country table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsWebsiteByCountryModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_website_by_country';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsWebsiteByCountry';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
24
app/Models/AnalyticsWebsiteByRefererModel.php
Normal file
24
app/Models/AnalyticsWebsiteByRefererModel.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Class AnalyticsWebsiteByRefererModel
|
||||
* Model for analytics_website_by_referer table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class AnalyticsWebsiteByRefererModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_website_by_referer';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
protected $returnType = 'App\Entities\AnalyticsWebsiteByReferer';
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
}
|
||||
23
app/Models/UnknownUserAgentsModel.php
Normal file
23
app/Models/UnknownUserAgentsModel.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Class UnknownUserAgentsModel
|
||||
* Model for analytics_unknown_useragents table in database
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class UnknownUserAgentsModel extends Model
|
||||
{
|
||||
protected $table = 'analytics_unknown_useragents';
|
||||
|
||||
protected $allowedFields = [];
|
||||
|
||||
public function getUserAgents($p_id = 0)
|
||||
{
|
||||
return $this->where('id>', $p_id)->findAll();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue