TOP

Mobi_Mtld_DA_Properties

Contains a map of names to Property objects. An instance of this class is returned by getProperties().
Source
Properties.php
Implements
IteratorAggregate
Depends on
ArrayIterator
Property
Mobi_Mtld_DA_DataType
Author
DeviceAtlas Limited

Methods

__get

mixed __get(string name)

Returns the property value, the data type of the value is set proper data type as defined for the property. If property does not exist null will be returned

Arguments

    name (string)
    the name of the property

Returns

mixed
The property typed value or null

__isset

bool __isset(string name)

Returns true if the Properties contains a mapping for the specified name.

Arguments

    name (string)
    The name of the key whose presence is to be tested

Returns

bool
true if a Property exists for the specified key.

__toString

string __toString()

Serialize properties to JSON.

Returns

string
A serialized string of the properties.

contains

bool $obj->contains(string name, mixed value)

Check if a property has a specific value.

Arguments

    name (string)
    Property name
    value (mixed)
    Value to be checked against property's value

Returns

bool
true=the property value matched the expected value

containsKey

bool $obj->containsKey(string name)

Returns true if the Properties contains a mapping for the specified name.

Arguments

    name (string)
    The name of the key whose presence is to be tested

Returns

bool
true if a Property exists for the specified key.

get

Property $obj->get(string name)

Returns the Property to which the specified name is mapped to, or null if there is no mapping for this name.

Arguments

    name (string)
    the name of the key whose associated Property is to be returned.

Returns

Property
The value to which the specified name is mapped to, or null if the map contains no mapping for this name.

isEmpty

bool $obj->isEmpty()

Returns true if there are no properties.

Returns

bool
true=if no properties exist.

keySet

array $obj->keySet()

Get the property names of the property set.

Returns

array
Property names

put

void $obj->put(string name, Property property)

Associates the specified Property with the specified name. If a Property for this name currently exists it will be replaced by the new value.

Arguments

    name (string)
    key with which the specified value is to be associated.
    property (Property)
    Property instance - value to be associated with the specified name.

Returns

void

size

int $obj->size()

Returns the number of Property objects in this Properties Map.

Returns

int
the number of mappings in this map.

toString

string $obj->toString()

Serialize properties to JSON.

Returns

string
A serialized string of the properties.