Documentation

Mobi_Mtld_DA_DataType
in package

The data types for various properties. Each Property object returned has a getDataType() method.

Tags
copyright

Copyright (c) DeviceAtlas Limited 2021. All Rights Reserved. https://deviceatlas.com

author

DeviceAtlas Limited

Table of Contents

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
$names  : mixed
Maps data types to data type names array {byte: string}
getName()  : string
Get the name of a given data type.

Constants

BOOLEAN

Type boolean

public mixed BOOLEAN = 0

DOUBLE

Type double

public mixed DOUBLE = 6

INTEGER

Type int

public mixed INTEGER = 3

LONG

Type long int

public mixed LONG = 4

SHORT

Type short int

public mixed SHORT = 2

STRING

Type string

public mixed STRING = 7

UNKNOWN

Unknown type

public mixed UNKNOWN = 8

Properties

$names

Maps data types to data type names array {byte: string}

private static mixed $names = array(self::BOOLEAN => 'Boolean', self::BYTE => 'Byte', self::SHORT => 'Short', self::INTEGER => 'Integer', self::LONG => 'Long', self::FLOAT => 'Float', self::DOUBLE => 'Double', self::STRING => 'String', self::UNKNOWN => 'Unknown')

Methods

getName()

Get the name of a given data type.

public static getName(mixed $dataTypeID) : string
Parameters
$dataTypeID : mixed
Return values
string

The name of the data type.

Search results