Importer for fetching position data from HTML ICBM meta tags on remote sites

package org.routamc.positioning

 Methods

get_icbm_location (\midcom_db_person $user, boolean $cache)

Get ICBM location for a user

Parameters

$user

\midcom_db_personPerson to fetch ICBM data for

$cache

booleanWhether to cache the position to a log object

Returns

Array

import (array $position, integer $person_id)

Import ICBM log entry.

The entries are associative arrays containing all of the following keys:

  • latitude
  • longitude

Parameters

$position

arrayLog entry in Array format specific to importer

$person_id

integerID of the person to import logs for

Returns

booleanIndicating success.

seek_icbm_users ()

Seek users with ICBM account settings set

Returns

Array

_fetch_icbm_position ($url)

Parameters

$url