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
|
|
7799
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
75
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
7
|
use base qw(MasonX::Request::WithApacheSession MasonX::Request::ExtendedCompRoot); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1255
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# Call WithApacheSession's exec, then put comp_root back |
15
|
|
|
|
|
|
|
# to what it was when the current request or subrequest was made |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
sub exec |
18
|
|
|
|
|
|
|
{ |
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
20
|
0
|
|
|
|
|
|
my $return_exec = $self->SUPER::exec(@_); |
21
|
0
|
|
|
|
|
|
$self->reset_comp_root; |
22
|
0
|
|
|
|
|
|
return $return_exec; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# |
26
|
|
|
|
|
|
|
# Simply pass the buck |
27
|
|
|
|
|
|
|
# |
28
|
|
|
|
|
|
|
sub fetch_comp |
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
0
|
1
|
|
my $return_exec = MasonX::Request::ExtendedCompRoot::fetch_comp(@_); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |