TelemetryManager
in package
This class allow sending telemetry data to the master server, ONLY if the user has registered this installation.
Tags
Table of Contents
- TELEMETRY_URL = 'https://facturascripts.com/Telemetry'
- UPDATE_INTERVAL = 604800
- Weekly update
- $id_install : int
- $last_update : int
- $sign_key : string
- __construct() : mixed
- claimUrl() : string
- id() : mixed
- install() : bool
- ready() : bool
- signUrl() : string
- unlink() : bool
- update() : bool
- calculateHash() : void
- collectData() : array<string|int, mixed>
- save() : void
Constants
TELEMETRY_URL
public
mixed
TELEMETRY_URL
= 'https://facturascripts.com/Telemetry'
UPDATE_INTERVAL
Weekly update
public
mixed
UPDATE_INTERVAL
= 604800
Properties
$id_install
private
int
$id_install
$last_update
private
int
$last_update
$sign_key
private
string
$sign_key
Methods
__construct()
public
__construct() : mixed
Return values
mixed —claimUrl()
public
claimUrl() : string
Return values
string —id()
public
id() : mixed
Return values
mixed —install()
public
install() : bool
Return values
bool —ready()
public
ready() : bool
Return values
bool —signUrl()
public
signUrl(string $url) : string
Parameters
- $url : string
Return values
string —unlink()
public
unlink() : bool
Return values
bool —update()
public
update() : bool
Return values
bool —calculateHash()
private
calculateHash(array<string|int, mixed> &$data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —collectData()
private
collectData([bool $minimum = false ]) : array<string|int, mixed>
Parameters
- $minimum : bool = false
Return values
array<string|int, mixed> —save()
private
save() : void