CMS  Version 3.9
ImagePickerManifest Class Reference

Static Public Member Functions

static getComponentDefinition ()
 
static subscribeToEvents ()
 
static registerPlugins ()
 
static onInitialize ()
 
static getScripts ()
 
static getStyles ()
 

Detailed Description

Definition at line 39 of file manifest.inc.

Member Function Documentation

◆ getComponentDefinition()

static ImagePickerManifest::getComponentDefinition ( )
static

Definition at line 41 of file manifest.inc.

42  {
43  $component = new Component();
44  $component->name = "image_picker";
45  $component->description = "Image picker functionality for Fakoli/CMS RTE integration";
46  $component->author = "Andy Green";
47  $component->version = "1.0";
48  $component->priority = 5;
49  $component->enabled = true;
50 
51  return $component;
52  }
$component
Definition: help.inc:38

◆ getScripts()

static ImagePickerManifest::getScripts ( )
static

Definition at line 76 of file manifest.inc.

77  {
78  return array("/components/image_picker/js/image_picker.js",
79  "/components/image_picker/js/image_picker_tinymce_plugin.js");
80  }

◆ getStyles()

static ImagePickerManifest::getStyles ( )
static

Definition at line 82 of file manifest.inc.

83  {
84  return array("/components/image_picker/css/image_picker.css");
85  }

◆ onInitialize()

static ImagePickerManifest::onInitialize ( )
static

Definition at line 65 of file manifest.inc.

66  {
67  global $html_editor_extra_buttons;
68 
69  $html_editor_extra_buttons[] =
70  array("name" => "image_picker",
71  "image" => "/fakoli/richtext/images/insert_picture.gif",
72  "tooltip" => "Insert Photos",
73  "handler" => "imagePicker");
74  }

◆ registerPlugins()

static ImagePickerManifest::registerPlugins ( )
static

Definition at line 60 of file manifest.inc.

61  {
62  HtmlEditorManager::registerPlugin("Image Picker", "imagepicker");
63  }
static registerPlugin($title, $plugin)

◆ subscribeToEvents()

static ImagePickerManifest::subscribeToEvents ( )
static

Definition at line 54 of file manifest.inc.

55  {
56  return array("Initialize" => array(ImagePickerManifest, onInitialize),
57  "RegisterHTMLEditorPlugins" => array(ImagePickerManifest, registerPlugins));
58  }
static registerPlugins()
Definition: manifest.inc:60
static onInitialize()
Definition: manifest.inc:65

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