| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebDAO::Lib::MethodByPath; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
WebDAO::Lib::MethodByPath - Component for method tag |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
WebDAO::Lib::MethodByPath - Component for method tag |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
|
16
|
5
|
|
|
5
|
|
405
|
use WebDAO; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
160
|
|
|
17
|
5
|
|
|
5
|
|
21
|
use strict; |
|
|
5
|
|
|
|
|
7
|
|
|
|
5
|
|
|
|
|
90
|
|
|
18
|
5
|
|
|
5
|
|
22
|
use warnings; |
|
|
5
|
|
|
|
|
7
|
|
|
|
5
|
|
|
|
|
117
|
|
|
19
|
5
|
|
|
5
|
|
21
|
use base qw(WebDAO); |
|
|
5
|
|
|
|
|
13
|
|
|
|
5
|
|
|
|
|
1011
|
|
|
20
|
|
|
|
|
|
|
__PACKAGE__->mk_attr( _path=>undef, _args=>undef); |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub init { |
|
24
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
25
|
0
|
|
|
|
|
|
my ( $path, @args ) = @_; |
|
26
|
0
|
|
|
|
|
|
$self->_path($path); |
|
27
|
0
|
|
|
|
|
|
$self->_args( \@args ); |
|
28
|
0
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub fetch { |
|
32
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
33
|
0
|
|
|
|
|
|
my $sess = shift; |
|
34
|
0
|
|
|
|
|
|
my @path = @{ $sess->call_path( $self->_path ) }; |
|
|
0
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my ( $src, $res ) = $self->_root_->_traverse_( $sess, @path ); |
|
36
|
0
|
|
|
|
|
|
return $res; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
__DATA__ |