\TasksMap
Tasks manager map-view rendering class
Synopsis
class TasksMap
{
- // members
- protected array $allUserData = ;
- protected array $mapsCfg = ;
- protected array $altCfg = ;
- protected string $showYear = '';
- protected string $showMonth = '';
- protected int/void $showJobType = '';
- protected string $dataTable = 'taskman';
- protected integer $noGeoBuilds = 0;
- protected integer $deletedUsers = 0;
- protected integer $tasksExtracted = 0;
- protected array $allJobTypes = ;
- protected $messages = '';
- protected $tasksDb = '';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected void initMessages()
- protected void loadJobTypes()
- protected void initDatasource()
- protected void loadUsers()
- protected void setFiltersData()
- protected array getPlannedTasks()
- public array getTodayTasks()
- public string getPlacemarks()
- public string renderFiltersForm()
- public string renderMap()
- public string renderStats()
Members
protected
- $allJobTypes
—
array
Contains available jobtypes - $allUserData
—
array
Contains all available users data - $altCfg
—
array
Contains system alter config as key=>value - $dataTable
—
string
Contains default tasks data source table - $deletedUsers
—
int
Contains count of users whitch is not present currently in database or tasks without login - $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 - $showJobType
—
int/void
Contains selected jobtype to show or empty for all jobs - $showMonth
—
int
Contains selected month to show - $showYear
—
int
Contains selected year to show - $tasksDb
—
Tasks source database abstraction layer pleceholder - $tasksExtracted
—
int
Contains count of tasks by period
Methods
protected
- getPlannedTasks() — Returns array of tasks filtered by year/month
- initDatasource() — Inits data source database abstraction layer
- initMessages() — Inits system message helper object instance for further usage
- loadConfigs() — Loads system maps and alter configuration files
- loadJobTypes() — Loads all available jobtypes into protected property
- loadUsers() — Loads all users cached data
- setFiltersData() — Sets selected year/month properties of current as defaults
public
- __construct() — Creates new report instance
- getPlacemarks() — Returns list of formatted placemarks for map rendering
- getTodayTasks() — Returns array of tasks planned for current day
- renderFiltersForm() — Returns year/month filtering form
- renderMap() — Renders report as map
- renderStats() — Renders deleted users or unknown geo builds stats if they available