Functions

Get all the events within a timestamp range.

get_realtime_events(\TIME $from, \TIME $to) : array

Parameters

$from

\TIME

From time (inclusive).

$to

\TIME

To time (inclusive).

Returns

arrayList of template parameter sets (perfect for use in a Tempcode LOOP).

Get a country flag image for an IP address.

rain_get_country_image(\IP $ip_address) : \URLPATH

Parameters

$ip_address

\IP

An IP address.

Returns

\URLPATHCountry flag image (blank: could not find one).

Returns a map with an icon and multiplicity parameter (that may be NULL).

rain_get_special_icons(\?IP $ip_address, \TIME $timestamp, \?string $user_agent, \?string $news) : array

Parameters

$ip_address

\?IP

An IP address (used to check against bots) (NULL: no IP).

$timestamp

\TIME

A timestamp (used to check for logged sent emails).

$user_agent

\?string

A user agent (used to check against phones) (NULL: no user agent).

$news

\?string

News ticker news (NULL: no news ticker news).

Returns

arrayMap with an icon and multiplicity parameter.

Make a realtime event bubble's title fit in the available space.

rain_truncate_for_title(string $text) : string

Parameters

$text

string

Idealised title.

Returns

stringCropped title, with tooltip for full title.

AJAX script for returning realtime-rain data.

realtime_rain_script()