CMS  Version 3.9
GlossaryManifest Class Reference

Static Public Member Functions

static getComponentDefinition ()
 
static getAdminMenu ()
 
static getStyles ()
 
static getScripts ()
 
static subscribeToEvents ()
 

Public Attributes

 $allow_sessionless_handlers = array("glossary_list")
 

Detailed Description

Definition at line 7 of file manifest.inc.

Member Function Documentation

◆ getAdminMenu()

static GlossaryManifest::getAdminMenu ( )
static

Definition at line 22 of file manifest.inc.

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  }

◆ getComponentDefinition()

static GlossaryManifest::getComponentDefinition ( )
static

Definition at line 9 of file manifest.inc.

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  }
$component
Definition: help.inc:38

◆ getScripts()

static GlossaryManifest::getScripts ( )
static

Definition at line 42 of file manifest.inc.

43  {
44  return array(
45  "/components/glossary/js/glossarizer.js"
46  );
47  }

◆ getStyles()

static GlossaryManifest::getStyles ( )
static

Definition at line 35 of file manifest.inc.

36  {
37  return array(
38  "/components/glossary/css/glossary.css"
39  );
40  }

◆ subscribeToEvents()

static GlossaryManifest::subscribeToEvents ( )
static

Definition at line 51 of file manifest.inc.

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  }
Provides a central management class for event handlers and common functionality for the glossary comp...

Member Data Documentation

◆ $allow_sessionless_handlers

GlossaryManifest::$allow_sessionless_handlers = array("glossary_list")

Definition at line 49 of file manifest.inc.


The documentation for this class was generated from the following file: