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 = "developer_tools";
13  $component->description = "Provides tools and reports useful for understanding a Fakoli application's configuration and structure.";
14  $component->author = "Andrew Green";
15  $component->version = "1.0";
16  $component->priority = 20;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getAdminMenu()
23  {
24  return array(
25  "Developer Tools" => array
26  (
27  "Content Inventory" => array("page" => "/admin/content_inventory",
28  "role" => "admin",
29  "weight" => 1,
30  "icon" => "list-alt"),
31 
32  "Section Map" => array("page" => "/admin/section_map",
33  "role" => "admin",
34  "weight" => 2,
35  "icon" => "map"),
36 
37  "Event Map" => array("page" => "/admin/event_map",
38  "role" => "admin",
39  "weight" => 3,
40  "icon" => "map-signs"),
41 
42  "Permissions Map" => array("page" => "/admin/permissions_map",
43  "role" => "admin",
44  "weight" => 4,
45  "icon" => "unlock"),
46 
47  "Permissions Checker" => array("page" => "/admin/permissions_checker",
48  "role" => "admin",
49  "weight" => 5,
50  "icon" => "/components/developer_tools/images/permissions.svg"),
51 
52  "Table Information" => array("page" => "/admin/table_information",
53  "role" => "admin",
54  "weight" => 6,
55  "icon" => "database"),
56 
57  "Test PHP CLI" => array("page" => "/admin/test_php_cli",
58  "role" => "admin",
59  "weight" => 99,
60  "icon" => "terminal")
61  )
62  );
63  }
64 
65  static function subscribeToEvents()
66  {
67  return array(
68  "ComponentScanComplete" => array(DeveloperToolsManager, setDefaults),
69  "RegisterAdminIcons" => array(DeveloperToolsManager, registerIcons)
70  //TODO: Add Event Registrations here
71  );
72  }
73 }
74 ?>
$component
Definition: help.inc:38
Provides a central management class for event handlers and common functionality for the developer_too...
static getComponentDefinition()
Definition: manifest.inc:9
static subscribeToEvents()
Definition: manifest.inc:65