Tasks
An object for getting a list of tasks.
Tasks PHP Methods
static calculateHoursOpen(int $beginTime) v5
Calculate when the next time the worker will be able to work on tasks
PARAMETERS:
$beginTime = int, timestamp of begine time to work on tasks
RETURN VALUE:
int = when the next time the worker will be able to work on tasks getOldTasks() v5
Gets old tasks IDs
PARAMETERS:
NONE
RETURN VALUE:
int = old tasks ID getTaskTable() v5
Gets tasks as table rows HTML
PARAMETERS:
NONE
RETURN VALUE:
string = tasks as table rows HTML getTotalScore() v5
Gets tasks total score
PARAMETERS:
NONE
RETURN VALUE:
int = tasks total score getTotalTasks() v5
Gets total number of loaded tasks
PARAMETERS:
NONE
RETURN VALUE:
int = total number of tasksstatic getTrainHead(bool $inTrain) v5
Gets training task script head as HTML embed code
PARAMETERS:
$inTrain = bool, true to return the script head, false to return empty
RETURN VALUE:
string = training task script head as HTML embed code loadActiveTasks(\WMT\SQL\Member\Member $member, bool $showOnlyMine = true, int $sRTA = 2, int $priority = 0) v5
Loads active tasks for a member
PARAMETERS:
$member = object
$showOnlyMine = bool, true to show only logged in member tasks, false to show everyone tasks
$sRTA = int, 1 to show tasks ready to approve, 0 to show tasks in progress, 2 to show all
$priority = int, tasks priority, 0 to show all priorities
RETURN VALUE:
string = "yes" if the tasks loaded successfully loadAdminApproveTasks() v5
Loads active incompleted tasks that didn't get approve by admin yet
PARAMETERS:
NONE
RETURN VALUE:
string = mysql query to load active incompleted tasks that didn't get approve by admin yet loadClientEmployeeTasks(int $clientID, int $employeeID) v5
Loads all tasks created for a client and worked on by an employee
PARAMETERS:
$clientID = int, client ID
$employeeID = int, employee ID
RETURN VALUE:
string = mysql query to load all tasks created for a client and worked on by an employee loadClientsTasks(int $uType, string $clientWhere, int $showAll) v5
Loads all client tasks using a custom mysql query
PARAMETERS:
$uType = int, user type
$clientWhere = string, mysql query where statement
$showAll = int, 0 to show all incomplete, inprogress tasks | 2 to show all incomplete, awaiting approval tasks | any other value to show all
RETURN VALUE:
string = mysql query to load all client tasks using a custom mysql query loadClientTasks(int $memberID, int $showAll) v5
Loads tasks by client
PARAMETERS:
$memberID = int, member ID (client ID)
$showAll = int, 0 to show all inacompleted tasks
RETURN VALUE:
string = mysql query to load tasks by client loadInactiveTasks(\WMT\SQL\Member\Member $member, bool $showOnlyMine = true) v5
Loads inactive tasks for a member
PARAMETERS:
$member = object
$showOnlyMine = bool, true to show only logged in member tasks, false to show everyone tasks
RETURN VALUE:
string = "yes" if the tasks loaded successfully loadQue() v5
Loads tasks que for active incomplete tasks with priority > 5
PARAMETERS:
NONE
RETURN VALUE:
string = mysql query to load tasks que for active incomplete tasks with priority > 5 loadSkillTask(int $skillID, bool $readyApprove = false) v5
Loads tasks for active incomplete tasks with the given skill
PARAMETERS:
$skillID = int, skill ID
$readyApprove = bool, true to load ready to approve tasks, false to load only in progress tasks
RETURN VALUE:
string = mysql query to load tasks for active incomplete tasks with the given skill loadTypeTasks(int $uType, int $taskTypeID, int $taskType, int $showAll) v5
Loads tasks by their type
PARAMETERS:
$uType = int, user type
$taskTypeID = int, task type ID
$taskType = int, task type
$showAll = int, 0 to show all inacompleted tasks
RETURN VALUE:
string = mysql query to load tasks by type loadUnassignedSkills() v5
Loads tasks que for active incomplete tasks with unassigned skills
PARAMETERS:
NONE
RETURN VALUE:
string = mysql query to load tasks que for active incomplete tasks with unassigned skills loadUnassignedTasks(\WMT\SQL\Member\Member $member) v5
Loads all unassigned tasks
PARAMETERS:
$member = object
RETURN VALUE:
string = mysql query to load all unassigned tasks setEID(int $employeeID) v5
Sets employee ID
PARAMETERS:
$employeeID = int, employee ID
RETURN VALUE:
VOID setProjectManager(int $nPM) v5
Sets project manager for the loaded tasks
PARAMETERS:
$nPM = int, project manager ID (member ID)
RETURN VALUE:
VOID setResultLimit(int $nResultLimit) v5
Sets number of results per page
PARAMETERS:
$nResultLimit = int, number of results per page
RETURN VALUE:
VOID setShowActive(bool $nSD) v5
Turn show task active status on/off
PARAMETERS:
$nSD = bool, true to turn on show active status, false otherwise
RETURN VALUE:
VOID setShowClientName(bool $nSD) v5
Turn show task client name on/off
PARAMETERS:
$nSD = bool, true to turn on show client name, false otherwise
RETURN VALUE:
VOID setShowComplete(bool $nSD) v5
Turn show task complete status on/off
PARAMETERS:
$nSD = bool, true to turn on show complete status, false otherwise
RETURN VALUE:
VOID setShowDate(bool $nSD) v5
Turn show task date on/off
PARAMETERS:
$nSD = bool, true to turn on show date, false otherwise
RETURN VALUE:
VOID setShowDifficulty(bool $nDifficulty) v5
Turn show task difficulty on/off
PARAMETERS:
$nDifficulty = bool, true to turn on show difficulty, false otherwise
RETURN VALUE:
VOID setShowEmployeeName(bool $nSD) v5
Turn show task employee name on/off
PARAMETERS:
$nSD = bool, true to turn on show employee name, false otherwise
RETURN VALUE:
VOID setShowHours(bool $nHours) v5
Turn show task hours on/off
PARAMETERS:
$nHours = bool, true to turn on show hours, false otherwise
RETURN VALUE:
VOID setShowID(bool $nID) v5
Turn show task ID on/off
PARAMETERS:
$nID = bool, true to turn on show ID, false otherwise
RETURN VALUE:
VOID setShowPrimarySkill(bool $nPSkill) v5
Turn show task primary skill on/off
PARAMETERS:
$nPSkill = bool, true to turn on show primary skill, false otherwise
RETURN VALUE:
VOID setShowPriority(bool $nSD) v5
Turn show task priority on/off
PARAMETERS:
$nSD = bool, true to turn on show priority, false otherwise
RETURN VALUE:
VOID setShowProjectManager(bool $sPM) v5
Turn show task project manager on/off
PARAMETERS:
$sPM = bool, true to turn on show project manager, false otherwise
RETURN VALUE:
VOID setShowQuestion(bool $nQuestion) v5
Turn show task questions on/off
PARAMETERS:
$nQuestion = bool, true to turn on show questions, false otherwise
RETURN VALUE:
VOID setShowRateType(bool $nSRT) v5
Turn show task rate type on/off
PARAMETERS:
$nSRT = bool, true to turn on show rate type, false otherwise
RETURN VALUE:
VOID setShowSupportRequests(bool $nSR) v5
Turn show task support requests on/off
PARAMETERS:
$nSR = bool, true to turn on show support requests, false otherwise
RETURN VALUE:
VOID setShowTaskIsFor(bool $nSD) v5
Turn show task is for details on/off
PARAMETERS:
$nSD = bool, true to turn on show is for details, false otherwise
RETURN VALUE:
VOID setShowTitle(bool $nSD) v5
Turn show task title on/off
PARAMETERS:
$nSD = bool, true to turn on show title, false otherwise
RETURN VALUE:
VOID setShowUpdated(bool $nSD) v5
Turn show task updated date/time on/off
PARAMETERS:
$nSD = bool, true to turn on show updated date/time, false otherwise
RETURN VALUE:
VOID setShowUserType(bool $nSD) v5
Turn show task user type on/off
PARAMETERS:
$nSD = bool, true to turn on show user type, false otherwise
RETURN VALUE:
VOID setTaskOrder(string $ordString) v5
Sets task order
PARAMETERS:
$ordString = string, order query
RETURN VALUE:
VOIDstatic wmtIsOpen(int $beginTime) v5
Checks whether WMT is open to accept tasks or not
PARAMETERS:
$beginTime = int, timestamp of begine time to work on tasks
RETURN VALUE:
bool = true if can start working on tasks, false otherwiseTasks PHP Variables
$orderList v5
$taskTemplate v5