\AerialAlerts
Aerial raid notification class
Synopsis
class AerialAlerts
{
- // constants
- const DATA_SOURCE = 'http://ubilling.net.ua/aerialalerts/';
- const MAP_SOURCE = 'http://ubilling.net.ua/aerialalerts/?map=true';
- const ALERTS_KEY = 'AERIALALERTS';
- const URL_ME = '?module=report_aerial';
- const ROUTE_ALL = 'allregions';
- const ROUTE_MAP = 'showmap';
- // members
- protected $api = '';
- protected $cache = '';
- protected integer $alertsCachingTimeout = 10;
- protected $messages = '';
- protected array $allAlerts = ;
- // methods
- public void __construct()
- protected void initMessages()
- protected void initApi()
- protected initCache()
- protected void loadAlerts()
- public string renderControls()
- public string renderReport()
- public string renderMap()
- public string renderRegionNotification()
- public string usCallback()
Constants
Name | Value |
---|---|
DATA_SOURCE | 'http://ubilling.net.ua/aerialalerts/' |
MAP_SOURCE | 'http://ubilling.net.ua/aerialalerts/?map=true' |
ALERTS_KEY | 'AERIALALERTS' |
URL_ME | '?module=report_aerial' |
ROUTE_ALL | 'allregions' |
ROUTE_MAP | 'showmap' |
Members
protected
Methods
protected
- initApi() — Inits basic json api interraction layer
- initCache() — Inits system caching instance for further usage
- initMessages() — Inits system messages helper
- loadAlerts() — Loads aerial alerts from cache or HTTP API
public
- __construct()
- renderControls() — Just renders module controls
- renderMap() — Returns precached alerts map html image code
- renderRegionNotification() — Renders DarkVoid notification if monitored region now under alarm
- renderReport() — Renders aerial alerts basic report
- usCallback() — Returns json with notification region alert state