TOP

Mobi_Mtld_DA_Device_ClientProps

This class is used by the main API class and should not be used directly.
Source
ClientProps.php
Depends on
Mobi_Mtld_DA_Property
clientSide
A
Extends
Mobi_Mtld_DA_Device_PostWalkRules
Package
Mobi\Mtld\DA\Device
Author
DeviceAtlas Limited

Methods

getRequiredProperties

The $obj->getRequiredProperties()

Get a list of all the required properties that are needed for this class to properly run its rules.

Returns

The
list of required properties.

propIsOutput

TRUE $obj->propIsOutput(integer $propertyId)

Check if the property is used in the rules and so can be found from them. This is used in Api.getProperty() to avoid calling the methods in the class if the property that is being looked for cannot be found here.

Arguments

    $propertyId (integer)
    The ID of the property that is sought

Returns

TRUE
if the propertyId is used, FALSE otherwise

putProperties

void $obj->putProperties(string $clientSide)

Merge the tree walk properties with the client side properties and run any additional rules based on the client side and tree walk properties. The rules can define replacement or additional values for properties and can also provide a new User-Agent to be used for a second tree walk. This is typically a fake User-Agent mapped to a device that cannot normally be detected such as the various iPhone models.

Arguments

    $clientSide (string)

Returns

void