2020-06-12 20:41:09 +00:00
|
|
|
<?php
|
2020-08-04 11:25:22 +00:00
|
|
|
|
2020-06-12 20:41:09 +00:00
|
|
|
/**
|
|
|
|
* 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/
|
|
|
|
*/
|
2020-08-04 11:25:22 +00:00
|
|
|
|
2021-04-14 15:58:40 +00:00
|
|
|
namespace Analytics\Models;
|
2020-06-12 20:41:09 +00:00
|
|
|
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
|
|
|
|
class UnknownUserAgentsModel extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'analytics_unknown_useragents';
|
|
|
|
|
|
|
|
protected $allowedFields = [];
|
|
|
|
|
2020-07-02 10:08:32 +00:00
|
|
|
public function getUserAgents($last_known_id = 0)
|
2020-06-12 20:41:09 +00:00
|
|
|
{
|
2020-08-04 11:25:22 +00:00
|
|
|
return $this->where('id >', $last_known_id)->findAll();
|
2020-06-12 20:41:09 +00:00
|
|
|
}
|
|
|
|
}
|