| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# This software is copyright (c) 2004 Alex Robinson. |
|
2
|
|
|
|
|
|
|
# It is free software and can be used under the same terms as perl, |
|
3
|
|
|
|
|
|
|
# i.e. either the GNU Public Licence or the Artistic License. |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MasonX::Request::ExtendedCompRoot::WithApacheSession; |
|
6
|
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
3895
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
40
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
|
10
|
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
3
|
use base qw(MasonX::Request::WithApacheSession MasonX::Request::ExtendedCompRoot); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
455
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new |
|
15
|
|
|
|
|
|
|
{ |
|
16
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
|
17
|
0
|
0
|
|
|
|
|
$class->alter_superclass( |
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
$MasonX::Request::WithApacheSession::VERSION ? |
|
19
|
|
|
|
|
|
|
'MasonX::Request::WithApacheSession' : |
|
20
|
|
|
|
|
|
|
$HTML::Mason::ApacheHandler::VERSION ? |
|
21
|
|
|
|
|
|
|
'HTML::Mason::Request::ApacheHandler' : |
|
22
|
|
|
|
|
|
|
$HTML::Mason::CGIHandler::VERSION ? |
|
23
|
|
|
|
|
|
|
'HTML::Mason::Request::CGI' : |
|
24
|
|
|
|
|
|
|
'HTML::Mason::Request' ); |
|
25
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(@_); |
|
26
|
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return $self->_init_extended(@_); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
# |
|
30
|
|
|
|
|
|
|
# Call WithApacheSession's exec, then put comp_root back |
|
31
|
|
|
|
|
|
|
# to what it was when the current request or subrequest was made |
|
32
|
|
|
|
|
|
|
# |
|
33
|
|
|
|
|
|
|
sub exec |
|
34
|
|
|
|
|
|
|
{ |
|
35
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
36
|
0
|
|
|
|
|
|
$self->comp_root(@{$self->_base_comp_root}); |
|
|
0
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
my $return_exec = $self->SUPER::exec(@_); |
|
38
|
|
|
|
|
|
|
#$self->reset_comp_root; |
|
39
|
0
|
|
|
|
|
|
$self->comp_root(@{$self->_base_comp_root}); |
|
|
0
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
return $return_exec; |
|
41
|
|
|
|
|
|
|
} |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# |
|
44
|
|
|
|
|
|
|
# Simply pass the buck |
|
45
|
|
|
|
|
|
|
# |
|
46
|
|
|
|
|
|
|
sub _fetch_comp |
|
47
|
|
|
|
|
|
|
{ |
|
48
|
0
|
|
|
0
|
|
|
return MasonX::Request::ExtendedCompRoot::_fetch_comp(@_); |
|
49
|
|
|
|
|
|
|
} |
|
50
|
|
|
|
|
|
|
# and again |
|
51
|
|
|
|
|
|
|
sub comp |
|
52
|
|
|
|
|
|
|
{ |
|
53
|
0
|
|
|
0
|
1
|
|
return MasonX::Request::ExtendedCompRoot::comp(@_); |
|
54
|
|
|
|
|
|
|
} |
|
55
|
|
|
|
|
|
|
# and again |
|
56
|
|
|
|
|
|
|
sub content |
|
57
|
|
|
|
|
|
|
{ |
|
58
|
0
|
|
|
0
|
1
|
|
return MasonX::Request::ExtendedCompRoot::content(@_); |
|
59
|
|
|
|
|
|
|
} |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |