CMS  Version 3.9
manifest.inc
Go to the documentation of this file.
1 <?php
8 {
9  static function getComponentDefinition()
10  {
11  $component = new Component();
12  $component->name = "scheduled_task";
13  $component->description = "Scheduling for periodic background tasks.";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 25;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getStyles()
23  {
24  return array(
25  "/components/scheduled_task/css/scheduled_task.css"
26  );
27  }
28 
29  static function getAdminMenu()
30  {
31  return array(
32  "Site Configuration" => array
33  (
34 
35  "Scheduled Tasks" => array("page" => "/admin/scheduled_tasks",
36  "role" => "admin",
37  "weight" => 13,
38  "icon" => "clock")
39  )
40  );
41  }
42 
43  static function subscribeToEvents()
44  {
45  return array(
46  "upgradeComponent" => array(ScheduledTaskManager, upgradeComponent),
47  "ComponentScanComplete" => array(ScheduledTaskManager, setDefaults),
48  "RegisterScheduledTaskWorkers" => array(ScheduledTaskManager, registerScheduledTaskWorkers)
49  //TODO: Add Event Registrations here
50  );
51  }
52 }
53 ?>
$component
Definition: help.inc:38
Manages scheduled task registration and execution.
static getComponentDefinition()
Definition: manifest.inc:9
static subscribeToEvents()
Definition: manifest.inc:43
static getAdminMenu()
Definition: manifest.inc:29