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 = "data_sync";
13  $component->description = "Generic Data Import Framework";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 10;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getStyles()
23  {
24  return array(
25  "/components/data_sync/css/data_sync.css"
26  );
27  }
28 
29  static function getScripts()
30  {
31  return array(
32  "/components/data_sync/js/data_sync_manager.js"
33  );
34  }
35 
36  static function getAdminMenu()
37  {
38  return array
39  (
40  "Site Configuration" => array
41  (
42  "Data Import" => array("page" => "/admin/data_import",
43  "role" => "admin",
44  "weight" => 100,
45  "icon" => "database")
46  )
47  );
48  }
49 
50  static function subscribeToEvents()
51  {
52  return array(
53  "upgradeComponent" => array(DataSyncManager, upgradeComponent),
54  "RegisterSerializationHandler" => array(DataSyncManager, registerSerializationHandler),
55  "ComponentScanComplete" => array(DataSyncManager, setDefaults),
56  "RegisterDataSyncAdapter" => array(DataSyncManager, registerCSVAdapter)
57  //TODO: Add Event Registrations here
58  );
59  }
60 }
61 ?>
$component
Definition: help.inc:38
Provides a central management class for event handlers and common functionality for the data_sync com...
static subscribeToEvents()
Definition: manifest.inc:50
static getScripts()
Definition: manifest.inc:29
static getComponentDefinition()
Definition: manifest.inc:9
static getAdminMenu()
Definition: manifest.inc:36
static getStyles()
Definition: manifest.inc:22