This commit is contained in:
2024-01-31 11:36:25 +07:00
parent caef156a05
commit 4561bd68d1
125 changed files with 9117 additions and 58 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace Hura8\Components\Analytics\Controller;
use Hura8\Components\Analytics\Model\TrackingModel;
class bTrackingController
{
protected $objTrackingModel;
public function __construct()
{
$this->objTrackingModel = new TrackingModel();
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Hura8\Components\Analytics\Model;
class TrackDeviceInfo
{
public $ip_address;
public $user_agent;
public $referrer;
public $is_mobile;
public function __construct(string $ip_address, string $user_agent, string $referrer, bool $is_mobile)
{
$this->ip_address = $ip_address;
$this->user_agent = $user_agent;
$this->referrer = $referrer;
$this->is_mobile = $is_mobile;
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace Hura8\Components\Analytics\Model;
class TrackRouteInfo
{
public $url;
public $module;
public $view;
public $view_id;
public $query;
public function __construct(
string $url,
string $module,
string $view,
string $view_id,
array $query = []
)
{
$this->url = $url;
$this->module = $module;
$this->view = $view;
$this->view_id = $view_id;
$this->query = $query;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Hura8\Components\Analytics\Model;
class TrackUserInfo
{
public $web_user_id;
public $customer_id;
public $is_crawler;
public function __construct(string $web_user_id, string $customer_id, bool $is_crawler)
{
$this->web_user_id = $web_user_id;
$this->customer_id = $customer_id;
$this->is_crawler = $is_crawler ? 1 : 0;
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace Hura8\Components\Analytics\Model;
use Hura8\Interfaces\AppResponse;
use Hura8\Interfaces\iEntityModel;
use Hura8\System\Model\aEntityBaseModel;
class TrackingModel extends aEntityBaseModel implements iEntityModel
{
protected $tb_track_ip = "tb_analyics_track_ip";
public function __construct() {
parent::__construct(
"analyics_user_log"
);
}
protected function extendedFilterOptions(): array
{
// TODO: Implement extendedFilterOptions() method.
}
protected function _buildQueryConditionExtend(array $filter_condition): ?array
{
// TODO: Implement _buildQueryConditionExtend() method.
}
}