2020-07-10 14:20:25 +02:00
|
|
|
<?php
|
2020-08-04 13:25:22 +02:00
|
|
|
|
2020-07-10 14:20:25 +02:00
|
|
|
/**
|
|
|
|
* @copyright 2020 Podlibre
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
2021-04-14 17:58:40 +02:00
|
|
|
namespace Analytics\Controllers;
|
2020-08-04 13:25:22 +02:00
|
|
|
|
2020-06-12 22:41:09 +02:00
|
|
|
use CodeIgniter\Controller;
|
2021-05-19 18:35:13 +02:00
|
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
2020-06-12 22:41:09 +02:00
|
|
|
|
2021-04-14 17:58:40 +02:00
|
|
|
class UnknownUserAgentsController extends Controller
|
2020-06-12 22:41:09 +02:00
|
|
|
{
|
2021-05-14 19:59:35 +02:00
|
|
|
public function index(int $lastKnownId = 0): ResponseInterface
|
2020-06-12 22:41:09 +02:00
|
|
|
{
|
2021-05-14 19:59:35 +02:00
|
|
|
$model = model('AnalyticsUnknownUserAgentsModel');
|
2020-06-12 22:41:09 +02:00
|
|
|
|
2020-08-04 13:25:22 +02:00
|
|
|
return $this->response->setJSON($model->getUserAgents($lastKnownId));
|
2020-06-12 22:41:09 +02:00
|
|
|
}
|
|
|
|
}
|