\DevOwl\RealProductManagerWpClient\licenseTelemetryData

Handle telemetry data.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
__construct()
add()
build()
probablyTransmit()
getActivePlugins()
getActiveTheme()
getLicense()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$license
$data
$encode
$client
N/A

Properties

$license

$license :\DevOwl\RealProductManagerWpClient\license\License

License instance.

Type

\DevOwl\RealProductManagerWpClient\license\License

$data

$data :

Telemetry data which gets filled with `appendData`.

Type

$encode

$encode :

Determines if the built data expects encoded data (e.g. `json_encode`).

Type

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this package so we can utils package natively.

Returns

string

setupConstants()

setupConstants()

Make sure the RPM_WP_CLIENT constants are available.

__construct()

__construct(\DevOwl\RealProductManagerWpClient\license\License  $license)

C'tor.

Parameters

\DevOwl\RealProductManagerWpClient\license\License $license

add()

add(string  $key,mixed  $data)

Add telemetry data to our existing data set.

Parameters

string $key
mixed $data

build()

build(boolean  $encode = false)

Get telemetry data (also when deactivated, you need to check this on your own).

Parameters

boolean $encode

probablyTransmit()

probablyTransmit()

Transmit the telemetry data to the license server depending on the state if allowed.

This includes in general if user has accepted telemetry data sharing and only once a day.

getActivePlugins()

getActivePlugins()

Get a compact list of active plugins.

getActiveTheme()

getActiveTheme()

Get a compact list of active plugins.

getLicense()

getLicense()

Get license instance.