FacturaScripts

TelemetryManager
in package

This class allow sending telemetry data to the master server, ONLY if the user has registered this installation.

Tags
author

Carlos Garcia Gomez [email protected]

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'

Properties

Methods

signUrl()

public signUrl(string $url) : string
Parameters
$url : string
Return values
string

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>

Search results