line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved. |
2
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify it |
3
|
|
|
|
|
|
|
# under the same terms as Perl itself. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package HTML::Mason::Resolver; |
6
|
|
|
|
|
|
|
$HTML::Mason::Resolver::VERSION = '1.60'; |
7
|
33
|
|
|
33
|
|
224
|
use strict; |
|
33
|
|
|
|
|
62
|
|
|
33
|
|
|
|
|
940
|
|
8
|
33
|
|
|
33
|
|
169
|
use warnings; |
|
33
|
|
|
|
|
78
|
|
|
33
|
|
|
|
|
1025
|
|
9
|
|
|
|
|
|
|
|
10
|
33
|
|
|
33
|
|
178
|
use HTML::Mason::Exceptions( abbr => ['param_error', 'virtual_error'] ); |
|
33
|
|
|
|
|
71
|
|
|
33
|
|
|
|
|
248
|
|
11
|
|
|
|
|
|
|
|
12
|
33
|
|
|
33
|
|
243
|
use Params::Validate qw(:all); |
|
33
|
|
|
|
|
80
|
|
|
33
|
|
|
|
|
6494
|
|
13
|
|
|
|
|
|
|
Params::Validate::validation_options( on_fail => sub { param_error join '', @_ } ); |
14
|
|
|
|
|
|
|
|
15
|
33
|
|
|
33
|
|
251
|
use HTML::Mason::ComponentSource; |
|
33
|
|
|
|
|
86
|
|
|
33
|
|
|
|
|
816
|
|
16
|
|
|
|
|
|
|
|
17
|
33
|
|
|
33
|
|
699
|
use Class::Container; |
|
33
|
|
|
|
|
4117
|
|
|
33
|
|
|
|
|
863
|
|
18
|
33
|
|
|
33
|
|
183
|
use base qw(Class::Container); |
|
33
|
|
|
|
|
93
|
|
|
33
|
|
|
|
|
7822
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Returns HTML::Mason::ComponentSource object |
21
|
|
|
|
|
|
|
sub get_info { |
22
|
0
|
|
|
0
|
1
|
|
shift->_virtual; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub glob_path { |
26
|
0
|
|
|
0
|
1
|
|
shift->_virtual; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _virtual |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
0
|
|
|
my $self = shift; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
my $sub = (caller(1))[3]; |
34
|
0
|
|
|
|
|
|
$sub =~ s/.*::(.*?)$/$1/; |
35
|
0
|
|
|
|
|
|
virtual_error "$sub is a virtual method and must be overridden in " . ref($self); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |