OpenInteract2/Manage/Website/CreateSecurityForAction.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 3 totaltotal 69.2% 18 / 26 CC 1 SCAR 2.9
CC
1
Cov
82%
get_brief_description
2.0
_assign_create_params
2.0
BEGIN
1.0
CRAP 1.3
« OpenInteract2/Manage/Website/CreateSecurityForSPOPS.pm ↑ Summary OpenInteract2/Brick/Daemon.pm »
1 package OpenInteract2::Manage::Website::CreateSecurityForAction;
2  
3 # $Id: CreateSecurityForAction.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::CreateSecurityForAction::VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
9  
10 87 ▶sub get_name {
Subroutine get_name: called CC=1 SCAR=0.0
Pod undocumented
11 87 return 'secure_action';
12 }
13  
14 0 ▶sub get_brief_description {
Subroutine get_brief_description: not called CC=1 SCAR=6.9
Pod undocumented
15 0 return "Assign security settings for an OI2 action.";
16 }
17  
18 1 ▶sub get_parameters {
Subroutine get_parameters: called CC=1 SCAR=0.0
Pod undocumented
19 1 my ( $self ) = @_;
20 1 my $params = $self->SUPER::get_parameters();
21 $params->{action} = {
22 1 description => "Action name for which you'd like to set security",
23 is_required => 'yes',
24 };
25 1 return $params;
26 }
27  
28 0 ▶sub _assign_create_params {
Subroutine _assign_create_params: not called CC=1 SCAR=6.9
29 0 my ( $self, $creator ) = @_;
30 0 $creator->action( $self->param( 'action' ) );
31 }
32  
33 87 OpenInteract2::Manage->register_factory_type( get_name() => __PACKAGE__ );
34  
35 87 1;
36  
37 __END__
« OpenInteract2/Manage/Website/CreateSecurityForSPOPS.pm ↑ Summary OpenInteract2/Brick/Daemon.pm »