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 = "redirect";
13  $component->description = "Provides redirection for resources that change identifier or move to a different section or site";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 30;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getAdminMenu()
23  {
24  return array
25  (
26  "Site Configuration" => array
27  (
28 
29  "Redirects" => array("page" => "/admin/redirects",
30  "role" => "admin",
31  "weight" => 11,
32  "icon" => "redo-alt")
33  )
34  );
35  }
36 
37  static function subscribeToEvents()
38  {
39  return array(
40  "upgradeComponent" => array(RedirectManager, upgradeComponent),
41  "ComponentScanComplete" => array(RedirectManager, setDefaults),
42  "ResourceNotFound" => array(RedirectManager, handleRedirects),
43  "SectionNotFound" => array(RedirectManager, handleSectionRedirects),
44  "OverrideResource" => array(RedirectManager, handleOverrides),
45  "RegisterSerializationHandler" => array(RedirectManager, registerSerializationHandler)
46  );
47  }
48 }
49 ?>
$component
Definition: help.inc:38
Provides a central management class for event handlers and common functionality for the redirect comp...
static getComponentDefinition()
Definition: manifest.inc:9
static subscribeToEvents()
Definition: manifest.inc:37
static getAdminMenu()
Definition: manifest.inc:22