\BuildsMap
Builds and users map service based on MapCore API.
Synopsis
class BuildsMap
{
- // constants
- const TABLE_BUILDS = 'build';
- const BUILD_USERS_CACHE = 'INBUILDUSERS';
- const BUILD_USERS_CACHE_TTL = 3600;
- // members
- protected $ubillingConfig = NULL;
- protected $buildDb = NULL;
- protected $mapCore = NULL;
- protected $cache = NULL;
- protected array $clustringOptions = ;
- // methods
- public void __construct()
- protected void initDb()
- protected void initMapCore()
- protected void initCache()
- public void saveBuildPlacement()
- public string getBuildIcon()
- public string drawBuilds()
- public string getBuildData()
- public string getLocationBuildForm()
- public string getLocationFinder()
- public void renderMapContainer()
- public getMapCore()
- public void render()
- public array getBuildsMapObjects()
- public string getBuildsPlacemarks()
- protected array getBuildsWithGeo()
- protected array getBuildsWithoutGeo()
- protected array getAptUsersData()
- protected array getOnlineUsersMap()
- protected array getBuildUsersCacheData()
- protected array getBuildUsersDataFromCache()
Constants
| Name | Value |
|---|---|
| TABLE_BUILDS | 'build' |
| BUILD_USERS_CACHE | 'INBUILDUSERS' |
| BUILD_USERS_CACHE_TTL | 3600 |
Members
protected
Methods
protected
- getAptUsersData() — Returns apt->build user mapping rows.
- getBuildUsersCacheData() — Returns build users cache envelope.
- getBuildUsersDataFromCache() — Gets users table/statistics for single build from cache or computes it.
- getBuildsWithGeo() — Returns builds with non-empty GEO field.
- getBuildsWithoutGeo() — Returns builds without GEO.
- getOnlineUsersMap() — Returns map with currently online users.
- initCache() — Inits cache instance.
- initDb() — Inits builds database abstraction layer.
- initMapCore() — Inits MapCore instance.
public
- __construct() — Creates BuildsMap service instance.
- drawBuilds() — Returns full map marks for builds with filled GEO field.
- getBuildData() — Returns build popup html by building id from cache.
- getBuildIcon() — Returns build icon key by users count.
- getBuildsMapObjects() — Returns builds layer as MapCore-compatible map objects payload.
- getBuildsPlacemarks() — Returns builds layer placemarks JS buffer only.
- getLocationBuildForm() — Returns form for placing build to selected coordinates.
- getLocationFinder() — Returns geo coordinates locator for builds.
- getMapCore() — Creates configured MapCore instance with all overlays.
- render() — Renders full builds map page output.
- renderMapContainer() — Renders map controls and map container block.
- saveBuildPlacement() — Persists posted building coordinates from editor form.