update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
19
inc/Hura8/Components/Analytics/Model/TrackDeviceInfo.php
Normal file
19
inc/Hura8/Components/Analytics/Model/TrackDeviceInfo.php
Normal 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;
|
||||
}
|
||||
}
|
||||
28
inc/Hura8/Components/Analytics/Model/TrackRouteInfo.php
Normal file
28
inc/Hura8/Components/Analytics/Model/TrackRouteInfo.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
19
inc/Hura8/Components/Analytics/Model/TrackUserInfo.php
Normal file
19
inc/Hura8/Components/Analytics/Model/TrackUserInfo.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
32
inc/Hura8/Components/Analytics/Model/TrackingModel.php
Normal file
32
inc/Hura8/Components/Analytics/Model/TrackingModel.php
Normal 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.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user