TOP

Mobi_Mtld_DA_Device_UaProps

This class is used by the main API class and should not be used directly.
Source
UaProps.php
Depends on
An
Mobi_Mtld_DA_Property
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 $userAgent, array $props2Vals, array $sought)

Merge the tree walk properties with the User-Agent string properties using the User-Agent rules

Arguments

    $userAgent (string)
    The User-Agent to find properties for
    $props2Vals (array)
    The results of the tree walk, map of property id to value id
    $sought (array)
    A set of properties to return values for

Returns

void