TOP

Mobi_Mtld_DA_Carrier_CarrierDataType

Carrier API specific data types. These are used to optimise the data in the data file. These data types are internal and are mapped to the DataType::STRING_UTF8 that is exposed to the customer.
Source
CarrierDataType.php
Extends
Mobi_Mtld_DA_DataType
Author
DeviceAtlas Limited

Constants

BOOLEAN = 0

Type boolean

BYTE = 1

Type byte

DOUBLE = 6

Type double

FLOAT = 5

Type float

INTEGER = 3

Type int

LONG = 4

Type long int

SHORT = 2

Type short int

STRING = 7

Type string

UNKNOWN = 8

Unknown type

STRING_1_BYTE_FIXED = 103

internal API use

STRING_2_BYTE_FIXED = 104

internal API use

STRING_3_BYTE_FIXED = 105

internal API use

STRING_4_BYTE_FIXED = 106

internal API use

STRING_5_BYTE_FIXED = 107

internal API use

STRING_LEN_BYTE = 100

internal API use

STRING_LEN_INT = 102

internal API use

STRING_LEN_SHORT = 101

internal API use

Static Methods

getName

string Mobi_Mtld_DA_Carrier_CarrierDataType::getName(byte dataTypeID)

Get the name of a given data type.

Arguments

    dataTypeID (byte)
    The id to lookup the name for

Returns

string
The name of the data type.

getBaseDataType

int Mobi_Mtld_DA_Carrier_CarrierDataType::getBaseDataType(int dataTypeID)

Get the base data type for the given CarrierDataType. This essentially just converts the above special String types to the DataType.String type.

Arguments

    dataTypeID (int)
    Data type from this class

Returns

int
Data type from DataType