$realm
$realm :
HD3 class
deviceWhatHas(string $key, string $value) : boolean
Find which devices have property 'X'.
| string | $key | Property to inquire about eg 'network', 'connectors' etc... |
| string | $value | Value to inquire about eg 'CDMA', 'USB' etc ... |
true on success, false otherwise. Use getReply to inspect results on success.
siteFetchAll(integer $id = null) : boolean
Convenience Function to download trees and specs in one go : DEPRECATED in 4.0 : Replace by siteFetchArchive
Note : Ultimate only
| integer | $id | Site Id |
true on success, false otherwise. Use getReply to inspect results on success.
_remote(string $suburl, string $data, string $filetype = 'json') : boolean
Makes requests to the various web services of Handset Detection.
Note : $suburl - the url fragment of the web service eg site/detect/${site_id}
| string | $suburl | |
| string | $data | |
| string | $filetype |
true on success, false otherwise
_matchDevice(string $header, string $value, integer $generic) : integer
Helper function for examining a HTTP header
| string | $header | matching ruleset to use (eg user-agent Note : Can use other headers like 'x-mobile-ua' against the user-agent rules) |
| string | $value | The header value |
| integer | $generic | True is this is a generic match (The match of last resort) |
a node id on success, false (0) otherwise.
_matchExtra(string $header, string $value, string $class) : integer
Helper function for examining a HTTP header
| string | $header | Always 'user-agent' |
| string | $value | The HTTP header value |
| string | $class | 'platform' or 'browser' or ???? |
a node id on success, false (0) otherwise.
_match(string $header, string $newvalue, string $treetag) : integer
The heart of the detection process
| string | $header | The type of header we're matching against - user-agent type headers use a sieve matching, all others are hash matching. |
| string | $newvalue | The http header's value (could be a user-agent or some other x- header value) |
| string | $treetag | The branch name eg : user-agent0, user-agent1, user-agentplatform, user-agentbrowser |
node (which is an id) on success, false otherwise