CMS
Version 3.9
manifest.inc
Go to the documentation of this file.
1
<?php
7
class
VersionedContentManifest
8
{
9
static
function
getComponentDefinition
()
10
{
11
$component
=
new
Component
();
12
$component
->name =
"versioned_content"
;
13
$component
->description =
"Provides support for content versioning, version management and approval"
;
14
$component
->author =
"Andy Green"
;
15
$component
->version =
"1.0"
;
16
$component
->priority = 12;
17
$component
->enabled =
true
;
18
19
return
$component
;
20
}
21
22
static
function
getAdminMenu
()
23
{
24
return
array(
25
//TODO: Admin Menu Item definitions
26
);
27
}
28
29
static
function
getScripts
()
30
{
31
return
array(
32
"/components/versioned_content/js/versioned_content_manager.js"
33
);
34
}
35
36
static
function
getStyles
()
37
{
38
return
array(
"/components/versioned_content/css/versioned_content.css"
);
39
}
40
41
static
function
subscribeToEvents
()
42
{
43
return
array(
"Initialize"
=> array(
VersionedContentManager
, onInitialize),
44
"upgradeComponent"
=> array(
VersionedContentManager
, upgradeComponent),
45
"ComponentScanComplete"
=> array(
VersionedContentManager
, setDefaults),
46
"RenderVersioningControls"
=> array(
VersionedContentManager
, onDrawInlineControls)
47
//TODO: Add Event Registrations here
48
);
49
}
50
}
51
?>
$component
$component
Definition:
help.inc:38
Component
Definition:
component.inc:42
VersionedContentManager
Provides a central management class for event handlers and common functionality for the versioned_con...
Definition:
versioned_content_manager.inc:14
VersionedContentManifest
Definition:
manifest.inc:8
VersionedContentManifest\getComponentDefinition
static getComponentDefinition()
Definition:
manifest.inc:9
VersionedContentManifest\subscribeToEvents
static subscribeToEvents()
Definition:
manifest.inc:41
VersionedContentManifest\getStyles
static getStyles()
Definition:
manifest.inc:36
VersionedContentManifest\getAdminMenu
static getAdminMenu()
Definition:
manifest.inc:22
VersionedContentManifest\getScripts
static getScripts()
Definition:
manifest.inc:29
code
cms.sonjara.com
cms
components
versioned_content
manifest.inc
Generated on Tue Mar 23 2021 15:36:11 for CMS by
1.9.1