Documentation

DataType
in package

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

Tags
author

DeviceAtlas Limited

Table of Contents

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

Properties

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

Methods

getName()  : string

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()

public static getName( $dataTypeID) : string
Parameters
$dataTypeID :

int The id to lookup the name for

Return values
string

The name of the data type.


        
On this page

Search results