CMS
Version 3.9
run_task.inc
Go to the documentation of this file.
1
<?php
2
Fakoli::using
(
"scheduled_task"
);
3
4
if
(!checkRole(
"admin"
))
5
{
6
throw
new
FakoliException
(
"Permission Denied"
);
7
}
8
9
$task_id
= checkNumeric($_GET[
"task_id"
]);
10
if
(!
$task_id
)
11
{
12
throw
new
FakoliException
(
"No task specified"
);
13
}
14
15
$task
=
new
ScheduledTask
(
$task_id
);
16
$task
->run();
17
18
redirect(
"/admin/scheduled_task_logs?task_id={$task_id}"
);
FakoliException
FakoliException is the base exception class for all Fakoli errors.
Definition:
core.inc:53
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
ScheduledTask
Definition:
scheduled_task.inc:8
$task_id
if(!checkRole("admin")) $task_id
Definition:
run_task.inc:9
$task
if(! $task_id) $task
Definition:
run_task.inc:15
code
cms.sonjara.com
cms
components
scheduled_task
handlers
run_task.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1