OpenInteract2/Manage/Website/CreateSecurityForSPOPS.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 3 totaltotal 67.8% 19 / 28 CC 1 SCAR 2.9
CC
1
Cov
79%
get_brief_description
2.0
_assign_create_params
2.0
BEGIN
1.0
CRAP 1.3
« OpenInteract2/Manage/Package/Check.pm ↑ Summary OpenInteract2/Manage/Website/CreateSecurityForAction.pm »
1 package OpenInteract2::Manage::Website::CreateSecurityForSPOPS;
2  
3 # $Id: CreateSecurityForSPOPS.pm,v 1.2 2005/03/18 04:09:50 lachoy Exp $
4  
5 87 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 87 ▶use base qw( OpenInteract2::Manage::Website::CreateSecurity );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 87 $OpenInteract2::Manage::Website::CreateSecurityForSPOPS::VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
9  
10 # METADATA
11  
12 87 ▶sub get_name {
Subroutine get_name: called CC=1 SCAR=0.0
Pod undocumented
13 87 return 'secure_spops';
14 }
15  
16 0 ▶sub get_brief_description {
Subroutine get_brief_description: not called CC=1 SCAR=6.9
Pod undocumented
17 0 return "Create security settings for multiple SPOPS objects at once.";
18 }
19  
20 1 ▶sub get_parameters {
Subroutine get_parameters: called CC=1 SCAR=0.0
Pod undocumented
21 1 my ( $self ) = @_;
22 1 my $params = $self->SUPER::get_parameters();
23 $params->{spops} = {
24 1 description =>
25 "SPOPS object tag for class you'd like to set security",
26 is_required => 'yes',
27 };
28 $params->{where} = {
29 1 description =>
30 "A 'where' clause to restrict the objects for which you'll set security",
31 is_required => 'no',
32 };
33 1 return $params;
34 }
35  
36 0 ▶sub _assign_create_params {
Subroutine _assign_create_params: not called CC=1 SCAR=6.9
37 0 my ( $self, $creator ) = @_;
38 0 $creator->spops( $self->param( 'spops' ) );
39 0 $creator->where( $self->param( 'where' ) );
40 }
41  
42 87 OpenInteract2::Manage->register_factory_type( get_name() => __PACKAGE__ );
43  
44 87 1;
45  
46 __END__
« OpenInteract2/Manage/Package/Check.pm ↑ Summary OpenInteract2/Manage/Website/CreateSecurityForAction.pm »