ClientSideParser
in package
Table of Contents
Properties
- $CLIENT_SIDE_STRING_DELIMITER : mixed
- $PROPERTY_VALUE_DELIMITER : mixed
Methods
- parse() : mixed
- Parse the Client-side string into Map where the key is the property name string and the value a Property object.
- decodeClientSideString() : mixed
- prepareClientSideString() : mixed
- Remove leading and trailing double quotes from the Client-side string if present.
Properties
$CLIENT_SIDE_STRING_DELIMITER
private
static mixed
$CLIENT_SIDE_STRING_DELIMITER
= '|'
$PROPERTY_VALUE_DELIMITER
private
static mixed
$PROPERTY_VALUE_DELIMITER
= ':'
Methods
parse()
Parse the Client-side string into Map where the key is the property name string and the value a Property object.
public
static parse(mixed $clientSideString) : mixed
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 : mixed
decodeClientSideString()
private
static decodeClientSideString(mixed $clientSideString) : mixed
Parameters
- $clientSideString : mixed
prepareClientSideString()
Remove leading and trailing double quotes from the Client-side string if present.
private
static prepareClientSideString(mixed $clientSideString) : mixed
Parameters
- $clientSideString : mixed