| 1 | package WebDAO::SessionSH; | ||||||||||||
| 2 | |||||||||||||
| 3 | =head1 NAME | ||||||||||||
| 4 | |||||||||||||
| 5 | WebDAO::SessionSH - Session class used from shell | ||||||||||||
| 6 | |||||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||||
| 8 | |||||||||||||
| 9 | WebDAO::SessionSH - Session class used from shell | ||||||||||||
| 10 | |||||||||||||
| 11 | =cut | ||||||||||||
| 12 | |||||||||||||
| 13 | 3 | our $VERSION = '0.01'; | |||||||||||
| 14 | 3 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 3 | ▶ | use WebDAO; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 3 | ▶ | use WebDAO::Session; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | 3 | ▶ | use Data::Dumper; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 3 | ▶ | use base qw( WebDAO::Session ); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | #Need to be forever called from over classes; | ||||||||||||
| 22 | sub _init { | ||||||||||||
| 23 | 3 | ▶ | my $self = shift; | ||||||||||
|
Subroutine
_init: called CC=2 SCAR=7.0
| |||||||||||||
| 24 | 3 | my %args = @_; | |||||||||||
| 25 | 3 | $self->SUPER::_init(@_); | |||||||||||
| 26 | 3 | delete $args{cv}; | |||||||||||
| 27 | 3 | $self->U_id( rand(100) ); | |||||||||||
| 28 | #setup default method | ||||||||||||
| 29 | 3 | ▶ | $ENV{REQUEST_METHOD} ||="GET"; | ||||||||||
|
Condition50%1/2
$ENV{"REQUEST_METHOD"} ||= "GET"
MC/DC0%0/1
$ENV{"REQUEST_METHOD"} ||= "GET"
$ENV{"REQUEST_METHOD"}
Truth table50%1/2
A
A= $ENV{"REQUEST_METHOD"}
| |||||||||||||
| 30 | 3 | Params $self ( $self->_get_params() ); | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | sub print_header() { | ||||||||||||
| 34 | 0 | ▶ | return '' | ||||||||||
|
Subroutine
print_header: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 35 | } | ||||||||||||
| 36 | |||||||||||||
| 37 | 3 | 1; | |||||||||||
| 38 | __DATA__ | ||||||||||||
| 39 | |||||||||||||
| 40 | =head1 SEE ALSO | ||||||||||||
| 41 | |||||||||||||
| 42 | http://webdao.sourceforge.net | ||||||||||||
| 43 | |||||||||||||
| 44 | =head1 AUTHOR | ||||||||||||
| 45 | |||||||||||||
| 46 | Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt> | ||||||||||||
| 47 | |||||||||||||
| 48 | =head1 COPYRIGHT AND LICENSE | ||||||||||||
| 49 | |||||||||||||
| 50 | Copyright 2002-2015 by Zahatski Aliaksandr | ||||||||||||
| 51 | |||||||||||||
| 52 | This library is free software; you can redistribute it and/or modify | ||||||||||||
| 53 | it under the same terms as Perl itself. | ||||||||||||
| 54 | |||||||||||||
| 55 | =cut | ||||||||||||
| 56 | |||||||||||||