\SigMap
User signups mapping/location report
Synopsis
class SigMap
{
- // members
- protected array $allUserData = ;
- protected array $mapsCfg = ;
- protected string $showYear = '';
- protected string $showMonth = '';
- protected string $dataTable = 'userreg';
- protected $userSignups = '';
- protected integer $noGeoBuilds = 0;
- protected integer $deletedUsers = 0;
- protected integer $registeredUsers = 0;
- protected array $allUsersStreetData = ;
- protected array $allUsersCityData = ;
- protected array $streetsSignups = ;
- protected $messages = '';
- // methods
- public void __construct()
- protected void loadMapsConfig()
- protected void initMessages()
- protected void initDataSource()
- protected void loadUsers()
- protected void setDateData()
- protected array getRegisteredUsers()
- protected string getPlacemarks()
- public string renderDateForm()
- public string renderMap()
- public string renderStats()
Members
protected
- $allUserData
—
array
Contains all available users data - $allUsersCityData
—
array
Contains all users cities data as login=>city - $allUsersStreetData
—
array
Contains all users street data as login=>street - $dataTable
—
string
Contains default signups data source table - $deletedUsers
—
int
Contains count of users whitch is not present currently in database - $mapsCfg
—
array
Contains system maps configuration as key=>value - $messages
—
System message helper object placeholder - $noGeoBuilds
—
int
Contains count of users without build geo assigned - $registeredUsers
—
int
Contains count of registered users by period - $showMonth
—
int
Contains selected month to show - $showYear
—
int
Contains selected year to show - $streetsSignups
—
array
Contains per-street signups data as cityname+streetname=>count - $userSignups
—
User signups database abstraction layer placeholder
Methods
protected
- getPlacemarks() — Returns list of formatted placemarks for map rendering
- getRegisteredUsers() — Returns array of user signups filtered by year/month
- initDataSource() — Inits signups database abstraction layer
- initMessages() — Inits system message helper object instance for further usage
- loadMapsConfig() — Loads system maps configuration file
- loadUsers() — Loads all users cached data
- setDateData() — Sets selected year/month properties of current as defaults
public
- __construct() — Creates new report instance
- renderDateForm() — Returns year/month filtering form
- renderMap() — Renders report as map
- renderStats() — Renders deleted users or unknown geo builds stats if they available