Function __global->encrypt_data_site_telemetry

Definitions

sources/telemetry.php

  • Encrypt some data using the site and software keys for sending in telemetry.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$data string No No required parameter N/A N/A The data to encrypt

Returns

  • Map of parameters for the JSON payload (null: could not encrypt the data)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Encrypt some data using the site and software keys for sending in telemetry.
 *
 * @param  string $data The data to encrypt
 * @return ?array Map of parameters for the JSON payload (null: could not encrypt the data)
 */

function encrypt_data_site_telemetry(string $data) : ?array