CMS  Version 3.9
manifest.inc
Go to the documentation of this file.
1 <?php
7 /**************************************************************
8 
9  Copyright (c) 2010 Sonjara, Inc
10 
11  Permission is hereby granted, free of charge, to any person
12  obtaining a copy of this software and associated documentation
13  files (the "Software"), to deal in the Software without
14  restriction, including without limitation the rights to use,
15  copy, modify, merge, publish, distribute, sublicense, and/or sell
16  copies of the Software, and to permit persons to whom the
17  Software is furnished to do so, subject to the following
18  conditions:
19 
20  The above copyright notice and this permission notice shall be
21  included in all copies or substantial portions of the Software.
22 
23  Except as contained in this notice, the name(s) of the above
24  copyright holders shall not be used in advertising or otherwise
25  to promote the sale, use or other dealings in this Software
26  without prior written authorization.
27 
28  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
30  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
32  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
33  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35  OTHER DEALINGS IN THE SOFTWARE.
36 
37 *****************************************************************/
38 
40 {
41  static function getComponentDefinition()
42  {
43  $component = new Component();
44  $component->name = "document";
45  $component->description = "Document management for Fakoli/CMS";
46  $component->author = "Andy Green";
47  $component->version = "1.0";
48  $component->priority = 2;
49  $component->enabled = true;
50 
51  return $component;
52  }
53 
55 
56  static function subscribeToEvents()
57  {
58  return array(
59  "EnumerateItems" => array(DocumentManager, enumerateItems),
60  "ResolveIdentifier" => array(DocumentManager, displayLibrary),
61  "DeleteRole" => array(DocumentManager, deleteRole),
62  "RegisterSearchables" => array(DocumentManager, registerSearchables),
63  "upgradeComponent" => array(DocumentManager, upgradeComponent),
64  "RegisterSerializationHandler" => array(DocumentManager, registerSerializationHandler),
65  "RegisterTaxonomyClasses" => array(DocumentManager, registerTaxonomyClasses),
66  "DeleteUser" => array(DocumentManager, deleteUser),
67  "ComponentScanComplete" => array(DocumentManager, setDefaults),
68  "RegisterCommentAdapters" => array(DocumentManager, registerCommentAdapter),
69  "RegisterSolrAdapters" => array(DocumentManager, registerSolrAdapter)
70  );
71  }
72 
73  static function getAdminMenu()
74  {
75  return array
76  (
77  "Site Content" => array
78  (
79 
80  "Documents" => array("page" => "/admin/document_libraries",
81  "role" => "admin,editor",
82  "weight" => 7,
83  "icon" => "copy")
84  )
85  );
86  }
87 
88 
89  static function getStyles()
90  {
91  return array("/components/document/css/document.css");
92  }
93 }
94 ?>
$component
Definition: help.inc:38
The DocumentManager class provides the core API and management functions for uploading documents and ...
static getAdminMenu()
Definition: manifest.inc:73
static getComponentDefinition()
Definition: manifest.inc:41
static getStyles()
Definition: manifest.inc:89
static subscribeToEvents()
Definition: manifest.inc:56
deleteRole($role)
Definition: role_form.inc:81