backend_task_info
Triggered when a task is being viewed. Allows modifying the values of public fields of the available instance of PHP action class tasksTasksInfoAction
.
Teamwork
Input (passed by reference)
$params['task'] object Instance of the
$params['action'] object Instance of the PHP action class
tasksTask
class corresponding to the current task.$params['action'] object Instance of the PHP action class
tasksTasksInfoAction
.
… your plugin code …
Output
Teamwork
Plugin code example
PHP
public function backendTaskInfo($params) { /** @var tasksTasksInfoAction */ $action = $params['action']; // Modify the values of public object properties if necessary. // $action->milestones = ... // $action->statuses = ... // $action->tags_cloud = ... /** @var tasksTask */ $task = $params['task']; // E.g., access task object's public members. // $task->... }