\r\n

51Degrees Device Detection On-Premise PHP  4.4

Device detection services for 51Degrees Pipeline

fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise Class Reference

Detailed Description

Examples
onpremise/failureToMatch.php, onpremise/manualDataUpdate.php, and onpremise/userAgentClientHints-Web.php.

Inheritance diagram for fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise:

[legend]

Collaboration diagram for fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise:

[legend]

Public Member Functions

 getEvidenceKeyFilter ()
Instance of EvidenceKeyFilter based on the evidence keys fetched from the cloud service by the private getEvidenceKeys() method.
 processInternal (FlowData $flowData)
 setCache (?DataKeyedCache $cache)
Add a cache to an engine. More...
 refreshData (string $fileName_or_data=null, int $length=null)
Ask the engine to start using the specified data file for detections. More...

Data Fields

string  $dataKey = 'device'
EngineHashSwig  $engine

Member Function Documentation

◆ refreshData()

fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise::refreshData ( string   $fileName_or_data = null,
int   $length = null  
)

Ask the engine to start using the specified data file for detections.

This can be used in 3 different scenarios:

  1. The data file that was originally used to create the engine has been updated on disk. In this case, no parameters are needed.
  2. A new data file is available, but it is in a different location to the original. In this case, the parameter should be the new data file location.
  3. A new data file is available in memory. The first parameter will be the variable holding the in-memory data file. The second will be the size of the data file in bytes.
Parameters
null | string
$fileName_or_data - Data file path or the variable holding the in-memory data file
null | int
$length - Length of the in-memory data file in bytes

◆ setCache()

fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise::setCache ( ?DataKeyedCache   $cache )

Add a cache to an engine.

Parameters
null | \fiftyone\pipeline\engines\DataKeyedCache
$cache - Cache with get and set methods
Exceptions
-
On This Page