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 = "phonegap";
13  $component->description = "Support for PhoneGap mobile applications";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 1;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
22  static function getScripts()
23  {
24  return array(
25  //TODO: Add Javascript File References "/components/phonegap/js/..."
26  );
27  }
28 
29  static function subscribeToEvents()
30  {
31  return array(
32  "ComponentScanComplete" => array(PhonegapManager, setDefaults),
33  "Initialize" => array(PhonegapManager, detectPhonegap),
34  "PostProcessScript" => array(PhonegapManager, addScript),
35  "RegisterPhonegapSupportScripts" => array(PhonegapManager, defaultSupportScripts)
36  );
37  }
38 }
39 ?>
$component
Definition: help.inc:38
Provides support for managing Phonegap apps.
static subscribeToEvents()
Definition: manifest.inc:29
static getComponentDefinition()
Definition: manifest.inc:9
static getScripts()
Definition: manifest.inc:22