lib/MojoMojo/Schema/Result/PathPermissions.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/MojoMojo/Schema/Result/Link.pm ↑ Summary lib/MojoMojo/Schema/Result/Preference.pm »
1 package MojoMojo::Schema::Result::PathPermissions;
2  
3 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 40 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 40 ▶use parent qw/MojoMojo::Schema::Base::Result/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 40 __PACKAGE__->load_components( "Core" );
10 40 __PACKAGE__->table("path_permissions");
11 40 __PACKAGE__->add_columns(
12 "path", { data_type => "VARCHAR", is_nullable => 0, size => 255 },
13 "role", { data_type => "INTEGER", is_nullable => 0, size => undef },
14 "apply_to_subpages", { data_type => "VARCHAR", is_nullable => 0, size => 3 },
15 "create_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
16 "delete_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
17 "edit_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
18 "view_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
19 "attachment_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
20 );
21 40 __PACKAGE__->set_primary_key( "path", "role", "apply_to_subpages" );
22 40 __PACKAGE__->belongs_to( "role", "MojoMojo::Schema::Result::Role", { id => "role" } );
23  
24 =head1 NAME
25  
26 MojoMojo::Schema::Result::PathPermissions - store path permissions
27  
28 =head1 AUTHOR
29  
30 Marcus Ramberg <mramberg@cpan.org>
31  
32 =head1 LICENSE
33  
34 This library is free software. You can redistribute it and/or modify
35 it under the same terms as Perl itself.
36  
37 =cut
38  
39  
40 40 1;
« lib/MojoMojo/Schema/Result/Link.pm ↑ Summary lib/MojoMojo/Schema/Result/Preference.pm »