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 = "glossary";
13  $component->description = "Terms and their definitions.";
14  $component->author = "Stephen Omwony";
15  $component->version = "1.0";
16  $component->priority = 10;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getAdminMenu()
23  {
24  return array(
25  "Site Content" => array
26  (
27  "Glossary" => array("page" => "/admin/glossaries",
28  "role" => "admin",
29  "weight" => 11,
30  "icon" => "")
31  )
32  );
33  }
34 
35  static function getStyles()
36  {
37  return array(
38  "/components/glossary/css/glossary.css"
39  );
40  }
41 
42  static function getScripts()
43  {
44  return array(
45  "/components/glossary/js/glossarizer.js"
46  );
47  }
48 
49  var $allow_sessionless_handlers = array("glossary_list");
50 
51  static function subscribeToEvents()
52  {
53  return array(
54  "upgradeComponent" => array(GlossaryManager, upgradeComponent),
55  "ComponentScanComplete" => array(GlossaryManager, setDefaults),
56  "StartPage" => array(GlossaryManager, glossarizeContent)
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 glossary comp...
static getStyles()
Definition: manifest.inc:35
static getAdminMenu()
Definition: manifest.inc:22
static getComponentDefinition()
Definition: manifest.inc:9
static subscribeToEvents()
Definition: manifest.inc:51
static getScripts()
Definition: manifest.inc:42