\DeviceAtlas\DeviceClientSideParser

Summary

Methods
Properties
Constants
__construct()
parse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
decodeClientSideString()
prepareClientSideString()
$CLIENT_SIDE_STRING_DELIMITER
$PROPERTY_VALUE_DELIMITER
$inputSanitiser
N/A

Properties

$CLIENT_SIDE_STRING_DELIMITER

$CLIENT_SIDE_STRING_DELIMITER : 

Type

$PROPERTY_VALUE_DELIMITER

$PROPERTY_VALUE_DELIMITER : 

Type

Methods

__construct()

__construct(\DeviceAtlas\Device\InputSanitiser  $inputSanitiser) 

ClientSideParser constructor.

Parameters

\DeviceAtlas\Device\InputSanitiser $inputSanitiser
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

parse()

parse(  $clientSideString) 

Parse the Client-side string into Map where the key is the property name string and the value a Property object.

The clientSide is of the form: bjs.webGl:1|bjs.geoLocation:1|sdeviceAspectRatio:16/10|iusableDisplayHeight:1050 and must be URI encoded, which transforms the string to bjs.webGl%3A1%7Cbjs.geoLocation%3A1%7CsdeviceAspectRatio%3A16%2F10%7CiusableDisplayHeight%3A1050

The first character of the property name is the type of the value. If the type is mot valid then the property/value pair will be ignored.

Parameters

$clientSideString
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

decodeClientSideString()

decodeClientSideString(  $clientSideString) 

Parameters

$clientSideString
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

prepareClientSideString()

prepareClientSideString(  $clientSideString) 

Remove leading and trailing double quotes from the Client-side string if present.

Parameters

$clientSideString
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275