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
- $appSettings : AppSettings
- $idinstall : int
- $lastupdate : int
- $signkey : string
- __construct() : mixed
- claimUrl() : string
- id() : mixed
- install() : bool
- ready() : bool
- signUrl() : string
- unlink() : bool
- update() : bool
- calculateHash() : mixed
- collectData() : array<string|int, mixed>
- save() : mixed
Constants
TELEMETRY_URL
public
mixed
TELEMETRY_URL
= 'https://facturascripts.com/Telemetry'
UPDATE_INTERVAL
Weekly update
public
mixed
UPDATE_INTERVAL
= 604800
Properties
$appSettings
private
AppSettings
$appSettings
$idinstall
private
int
$idinstall
$lastupdate
private
int
$lastupdate
$signkey
private
string
$signkey
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) : mixed
Parameters
- $data : array<string|int, mixed>
Return values
mixed —collectData()
private
collectData([bool $minimum = false ]) : array<string|int, mixed>
Parameters
- $minimum : bool = false
Return values
array<string|int, mixed> —save()
private
save() : mixed