Core.pm

filter: Statementstmt 77.7% 14 / 18 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 100% 4 / 4 totaltotal 57.8% 22 / 38 CC 5 SCAR 14.7
CC
5
Cov
54%
Editor
6.0
Publisher
6.0
Admin
6.0
CRAP 4.3
« Inbox.pm ↑ Summary Articles/Site.pm »
1 package Labyrinth::Plugin::Core;
2  
3 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 our $VERSION = '5.18';
7  
8 #----------------------------------------------------------------------------
9 # Libraries
10  
11 5 ▶use base qw(Labyrinth::Plugin::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 5 ▶use Labyrinth::Variables;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 #----------------------------------------------------------------------------
16 # Public Interface Functions
17  
18 0 ▶sub Editor { return unless AccessUser(EDITOR); }
Subroutine Editor: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless AccessUser(2) 0 0 0
19 0 ▶sub Publisher { return unless AccessUser(PUBLISHER); }
Subroutine Publisher: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless AccessUser(3) 0 0 0
20 0 ▶sub Admin { return unless AccessUser(ADMIN); }
Subroutine Admin: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless AccessUser(4) 0 0 0
21 0 ▶sub Master { return unless AccessUser(MASTER); }
Subroutine Master: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless AccessUser(5) 0 0 0
22  
23 5 1;
24  
25 __END__
26  
27 =head1 NAME
28  
29 Labyrinth::Plugin::Core - Core Plugin documentation for Labyrinth
30  
31 =head1 DESCRIPTION
32  
33 Documentation overview for Labyrinth Core Plugins.
34  
35 Labyrinth began life in 2002, with a small set of plugins to enable various
36 features of web site management. The core set of plugins here are those most
37 useful to provide a basic web site management system.
38  
39 These plugins provide the functionality to manipulate core aspects of the data
40 used within Labyrinth. Several of these plugins only provide administration
41 features.
42  
43 See the individual files for more details on how to use them.
44  
45 =head1 ADDITIONAL FILES
46  
47 As with the Labyrinth core package, additional files are needed to enable
48 Labyrinth and any installed plugins to work correctly. These files consist of
49 SQL, HTML template and configuration files, together with some basic CSS and
50 Javascript files.
51  
52 Please see the L<Labyrinth::Demo> distribution for a set of these files.
53  
54 However, these files are only the beginning, and to implement your website,
55 you will need to update the appropriate files to use your layout design.
56  
57 =head1 ADDITION INFORMATION
58  
59 Although Labyrinth has long been in development, documentation has not been a
60 priority. As such much of the documentation you may need to understand how to
61 use Labyrinth is the code itself. If you have the inclination, documentation
62 patches would be very gratefully received.
63  
64 The Labyrinth website [1] will eventually feature a documentation site, wiki
65 and other features which are intended to provide you with the information to
66 use and extend Labyrinth as you wish.
67  
68 [1] http://labyrinth.missbarbell.co.uk
69  
70 =head1 METHODS
71  
72 The Core module provides some convience methods for the dispatch tables.
73  
74 =over 4
75  
76 =item Editor
77  
78 Redirects to login page if user doesn't have Editor access.
79  
80 =item Publisher
81  
82 Redirects to login page if user doesn't have Publisher access.
83  
84 =item Admin
85  
86 Redirects to login page if user doesn't have Admin access.
87  
88 =item Master
89  
90 Redirects to login page if user doesn't have Master access.
91  
92 =back
93  
94 =head1 SEE ALSO
95  
96 L<Labyrinth>,
97 L<Labyrinth::Demo>
98  
99 L<http://labyrinth.missbarbell.co.uk>,
100 L<http://demo.missbarbell.co.uk>
101  
102 =head1 AUTHOR
103  
104 Barbie, <barbie@missbarbell.co.uk> for
105 Miss Barbell Productions, L<http://www.missbarbell.co.uk/>
106  
107 =head1 COPYRIGHT & LICENSE
108  
109 Copyright (C) 2002-2014 Barbie for Miss Barbell Productions
110 All Rights Reserved.
111  
112 This module is free software; you can redistribute it and/or
113 modify it under the Artistic License 2.0.
114  
115 =cut
« Inbox.pm ↑ Summary Articles/Site.pm »