CMS  Version 3.9
scheduled_tasks.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("scheduled_task");
3 Fakoli::usingFeature("data_view");
4 
5 $menu_item = "Scheduled Tasks";
6 
8 $tasks = $mgr->getTasks();
9 
10 $table = new DataListView($tasks, "scheduled_tasks");
11 
12 $table->column("Task", "<a href='scheduled_task_form?task_id={task_id}'>{component:prettify}: {task_name}</a>", true, "width: 40%")
13  ->column("Last Run", "{LastRun.log_date}", true, "width: 20%")
14  ->column("Status", "{LastRun.status}", true, "width: 30%")
15  ->column("Active", "<img src='/fakoli/images/{active:on/off}.png' alt='{active:Yes/No}'/>", true, "width: 10%; text-align: center");
16 
17 $table->paginate = true;
18 $table->filter = true;
19 $table->sortable = true;
20 $table->emptyMessage = "No scheduled task workers have been registered";
21 $table->excelFile = "scheduled_tasks.xls";
22 
23 $script .= $table->writeScript();
24 
25 $table->drawView();
$menu_item
$tasks
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
Manages scheduled task registration and execution.