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.58'; |
7
|
33
|
|
|
33
|
|
229
|
use strict; |
|
33
|
|
|
|
|
92
|
|
|
33
|
|
|
|
|
826
|
|
8
|
33
|
|
|
33
|
|
152
|
use warnings; |
|
33
|
|
|
|
|
54
|
|
|
33
|
|
|
|
|
881
|
|
9
|
|
|
|
|
|
|
|
10
|
33
|
|
|
33
|
|
166
|
use HTML::Mason::Exceptions( abbr => ['param_error', 'virtual_error'] ); |
|
33
|
|
|
|
|
74
|
|
|
33
|
|
|
|
|
250
|
|
11
|
|
|
|
|
|
|
|
12
|
33
|
|
|
33
|
|
197
|
use Params::Validate qw(:all); |
|
33
|
|
|
|
|
68
|
|
|
33
|
|
|
|
|
5243
|
|
13
|
|
|
|
|
|
|
Params::Validate::validation_options( on_fail => sub { param_error join '', @_ } ); |
14
|
|
|
|
|
|
|
|
15
|
33
|
|
|
33
|
|
212
|
use HTML::Mason::ComponentSource; |
|
33
|
|
|
|
|
62
|
|
|
33
|
|
|
|
|
588
|
|
16
|
|
|
|
|
|
|
|
17
|
33
|
|
|
33
|
|
534
|
use Class::Container; |
|
33
|
|
|
|
|
2848
|
|
|
33
|
|
|
|
|
671
|
|
18
|
33
|
|
|
33
|
|
154
|
use base qw(Class::Container); |
|
33
|
|
|
|
|
68
|
|
|
33
|
|
|
|
|
6601
|
|
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__ |