Positioning for a given person

Example:

get_coordinates($time);
if (!is_null($coordinates))
{
    echo sprintf('On %s % was in %s, %s', strftime('%x' $time), $user->name, $coordinates['latitude'], $coordinates['longitude']);
    // Will print "On 19.6.2006 Henri Bergius was in 60.2345, 25.00456"
}
?>
package org.routamc.positioning

 Methods

__construct (\midcom_db_person $person)

Initializes the class.

The real startup is done by the initialize() call.

Parameters

$person

get_coordinates ($time)

Get coordinates of the object

Parameters

$time

Returns

Array

seek_log ($time)

Get log object based on given time and the person

Parameters

$time

Returns

\org_routamc_positioning_log_dba

 Properties

 

\midcom_db_person $_person

The person we're looking for position of