root/trunk/midcom/midcom.admin.styleeditor/viewer.php

Revision 17359, 3.2 kB (checked in by flack, 1 month ago)

switch to PHP5-style constructors, part 7

  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * @package midcom.admin.styleeditor
4  * @author The Midgard Project, http://www.midgard-project.org
5  * @version $Id$
6  * @copyright The Midgard Project, http://www.midgard-project.org
7  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
8  */
9
10 /**
11  * Style editor interface for on-site editing of style elements, CSS and JavaScript
12  * files and pictures
13  *
14  * @package midcom.admin.styleeditor
15  */
16 class midcom_admin_styleeditor_viewer extends midcom_baseclasses_components_request
17 {
18     /**
19      * Constructor. This probably isn't called in normal plugin users.
20      *
21      * @access public
22      */
23     function __construct()
24     {
25         parent::__construct();
26     }
27     
28     /**
29      * Get the plugin handlers, which act alike with Request Switches of MidCOM
30      * Baseclasses Components (midcom.baseclasses.components.request)
31      *
32      * @access public
33      * @return mixed Array of the plugin handlers
34      */
35     function get_plugin_handlers()
36     {
37         $_MIDCOM->load_library('midgard.admin.asgard');
38         $_MIDCOM->load_library('midcom.admin.folder');
39         
40         return array
41         (
42             /**
43              * Style editor for onsite style editing
44              */
45             /**
46              * List style elements for topics/components using the style
47              *
48              * Match /style-editor/
49              */
50             'style_list' => array
51             (
52                 'handler' => array ('midcom_admin_styleeditor_handler_list', 'list'),
53             ),
54             /**
55              * Edit a style element
56              *
57              * Match /style-editor/edit/<style element name>/
58              */
59             'style_element_edit' => array
60             (
61                 'handler' => array ('midcom_admin_styleeditor_handler_edit', 'edit'),
62                 'fixed_args' => array ('edit'),
63                 'variable_args' => 1,
64             ),
65             /**
66              * Create new style element
67              *
68              * Match /create/
69              *
70              */
71              'style_element_create' => array
72              (
73                  'handler' => array ('midcom_admin_styleeditor_handler_create','create'),
74                  'fixed_args' => array ('create'),
75              ),
76             /**
77              * Create a new file
78              *
79              * Match /files/
80              */
81             'file_new' => array
82             (
83                 'handler' => array ('midcom_admin_styleeditor_handler_file', 'new'),
84                 'fixed_args' => array ('files'),
85             ),
86             /**
87              * Edit a file
88              *
89              * Match /files/<filename>
90              */
91             'file_edit' => array
92             (
93                 'handler' => array ('midcom_admin_styleeditor_handler_file', 'edit'),
94                 'fixed_args' => array ('files'),
95                 'variable_args' => 1,
96             ),
97             /**
98              * Delete a file
99              *
100              * Match /files/<filename>/delete/
101              */
102             'file_delete' => array
103             (
104                 'handler' => array ('midcom_admin_styleeditor_handler_file', 'delete'),
105                 'fixed_args' => array('files'),
106                 'variable_args' => 2,
107             ),
108         );
109     }
110 }
111 ?>
Note: See TracBrowser for help on using the browser.