setUserState('vbo.tm.filters', $filters);
// access the task manager object
$taskManager = VBOFactory::getTaskManager();
// get the list of tasks according to filters, by always forcing/injecting the area IDs
$tasks = VBOTaskModelTask::getInstance()->filterItems(array_merge($filters, ['id_areas' => $areaIds]), $start, $limit);
foreach ($tasks as $taskRecord) {
// wrap task record into a registry
$task = VBOTaskTaskregistry::getInstance((array) $taskRecord);
// load task tags
$tags = $task->getTags() ? $task->getTagRecords() : [];
?>
getID(); ?>
getAssigneeDetails() as $operator) {
?>
statusTypeExists($task->getStatus())) {
$status = $taskManager->getStatusTypeInstance($task->getStatus());
echo JHtml::fetch('vbohtml.taskmanager.status', $status);
}
if ($task->get('hasUnreadMessages', false)): ?>
getBookingId() && $bookingElement = $task->buildBookingElement()) {
if (!empty($bookingElement['img'])) {
$img = '

';
} else {
$img = '
';
}
$img = '
'
. $img
. ''
. '
';
$bookingText = $bookingElement['text'] . ' #' . $bookingElement['id'];
} else {
$img = '
';
$bookingText = '
' . JText::translate('VBO_UNASSIGNED') . '';
}
?>
getListingId()): ?>
getListingName($task->getListingId()); ?>
getAreaName($task->getAreaID()); ?>