FMXXXX Parser Documentation 0.1
FM2100, FM2200, FM4100 and FM4200 Data Parser

AVLData Class Reference

Public Member Functions

 __construct ($args=array())
 getTimestamp ()
 getStrTimestamp ($date_format= '')
 getPriority ()
 setTimestamp ($val)
 setPriority ($val)
 getStrPriority ()

Data Fields

 $gps_element
 $io_element

Detailed Description

AVL Data for Teltonika's FMXXXX GPS device.

Author:
Thierno Ib. Barry < >
Date:
26 Feb 2011
See also:
Teltonika FMXXXX Protocols GNU/LGPL v2.1
Todo:
Add getters to get Hex values (getHexVaribleName). Example: getHexTimestamp()

Constructor & Destructor Documentation

__construct ( args = array())

Constructor.

Parameters:
array$argsConstructor arguments

Member Function Documentation

getPriority ( )

Get the priority value converted in integer.

Returns:
int Return the priority value converted in integer
getStrPriority ( )

Get the priority name.

Returns:
string Return the priority short name: Low, High, Panic or Security.
getStrTimestamp ( date_format = '')

Get the timestamp value converted in string by php date function.

See also:
Php manual for dateformat.
Parameters:
string$date_formatA valid php dateformat
Returns:
string Return the latitude value converted in valid date string

Todo:
Find out a valid dateformat to put in default.
Todo:
Return timestamp in accordance to the given date format.

getTimestamp ( )

Get timestamp value converted in integer.

Returns:
int Return the timestamp value converted in integer
setPriority ( val)

Setter for the priority attribute. Note: The value must be in Hexadecimal.

Parameters:
string$valThe priority value in Hex base (16)
setTimestamp ( val)

Setter for the timestamp attribute. Note: The value must be in Hexadecimal.

Parameters:
string$valThe timestamp value in Hex base (16)

Field Documentation

$gps_element

GPSElement container.

public

$io_element

IOElement container.

public


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations