\TasksQualRep
Tasks quality control report
Synopsis
class TasksQualRep
{
- // constants
- const URL_TASKVIEW = '?module=taskman&edittask=';
- const URL_ME = '?module=tasksqualreport';
- const ROUTE_TASKRENDER = 'showtasks';
- const ROUTE_CALLSRENDER = 'showcalls';
- // members
- protected string $dateCurrentDay = '';
- protected string $dateMonthBegin = '';
- protected string $dateMonthEnd = '';
- protected string $dateWeekBegin = '';
- protected string $dateWeekEnd = '';
- protected string $dateYearBegin = '';
- protected string $dateYearEnd = '';
- protected array $allTasksData = ;
- protected array $allEmployeeNames = ;
- protected $messages = '';
- protected $taskRanks = '';
- protected $taskFails = '';
- protected $tasksWhatDone = '';
- // methods
- public void __construct()
- protected void initMessages()
- protected void setDates()
- protected void initDataSources()
- protected void loadTasks()
- protected void loadEmployee()
- protected string renderTasksModal()
- public string getDailyRanksText()
- public string renderRanks()
- public string renderFails()
- public string renderWhatDone()
- protected array getAdminStats()
- public string renderCallsReport()
- public string renderControls()
Constants
Name | Value |
---|---|
URL_TASKVIEW | '?module=taskman&edittask=' |
URL_ME | '?module=tasksqualreport' |
ROUTE_TASKRENDER | 'showtasks' |
ROUTE_CALLSRENDER | 'showcalls' |
Members
protected
- $allEmployeeNames
—
array
Contains all employee names from database as id=>name - $allTasksData
—
array
Contains current year tasks array for future rendering - $dateCurrentDay
—
string
Current date - $dateMonthBegin
—
string
Date of start of current month - $dateMonthEnd
—
string
Date of end of current month - $dateWeekBegin
—
string
Date of begin of current week - $dateWeekEnd
—
string
Date of end of current week - $dateYearBegin
—
string
Date of begin of the current year - $dateYearEnd
—
string
Date of end of current year - $messages
—
System message helper placeholder - $taskFails
—
Task fails (anomalies) stigma source placeholder - $taskRanks
—
Task ranks (score) stigma source placeholder - $tasksWhatDone
—
What was done on tasks stigma source placeholder
Methods
protected
- getAdminStats() — Extracts per admin states changes count from states data array
- initDataSources() — Inits datasources for reports
- initMessages() — Inits system messages object instance for further usage
- loadEmployee() — Loads all existing employee names from database
- loadTasks() — Loads all tasks data from database
- renderTasksModal() — Renders tasks list from stigma report data as modal
- setDates() — Sets dates intervals to use it for report data filtering
public
- __construct()
- getDailyRanksText() — Returns text representation of task execution ranks
- renderCallsReport() — Renders stats around callers/unique tasks processed
- renderControls() — Renders module controls
- renderFails() — Renders user anomalies of tasks execution
- renderRanks() — Renders user scores of tasks execution
- renderWhatDone() — Renders what was done on tasks