mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +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
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