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
7
$mgr
=
new
ScheduledTaskManager
();
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();
$mgr
$mgr
Definition:
scheduled_tasks.inc:7
$menu_item
$menu_item
Definition:
scheduled_tasks.inc:5
$table
$table
Definition:
scheduled_tasks.inc:10
$tasks
$tasks
Definition:
scheduled_tasks.inc:8
$script
$script
Definition:
scheduled_tasks.inc:23
Fakoli\usingFeature
static usingFeature()
Uses the specified framework feature(s).
Definition:
core.inc:388
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
ScheduledTaskManager
Manages scheduled task registration and execution.
Definition:
scheduled_task_manager.inc:17
code
cms.sonjara.com
cms
components
scheduled_task
admin
scheduled_tasks.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1