Mobi_Mtld_DA_Property $obj = new Mobi_Mtld_DA_Property(mixed value, byte dataTypeId)
Create a new Property with a value and data type.
The __toString()
Get the value of the property as string. Alias for asString(). If a property has multiple possible values then the values are concatenated with a comma.
The $obj->asBoolean()
Get the value of the property as a boolean.
The $obj->asInteger()
Get the value of the property as an integer.
A $obj->asSet()
Gets a set of possible values for this property. This is typically only used when it is known that a given property name can have multiple possible values. All items in the set will have the same data type.
The $obj->asString()
Get the value of the property as string. Alias for asString(). If a property has multiple possible values then the values are concatenated with a comma.
bool $obj->equals($obj object)
Compare two instances of this class. If both have equal values and data type then returns true.
string $obj->getDataType()
Get the type name of this property. See Mobi_Mtld_DA_DataType for a full list of data types.
byte $obj->getDataTypeId()
Get the type of this property. See Mobi_Mtld_DA_DataType for a full list of data types.
The $obj->toString()
Get the value of the property as string. Alias for asString(). If a property has multiple possible values then the values are concatenated with a comma.
The $obj->value()
Get the value of this property. This needs to be cast to the appropriate type such to be used. E.g. value = (int)$property->value();