| 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 |  | 471 | use WebDAO; | 
|  | 5 |  |  |  |  | 11 |  | 
|  | 5 |  |  |  |  | 189 |  | 
| 17 | 5 |  |  | 5 |  | 24 | use strict; | 
|  | 5 |  |  |  |  | 9 |  | 
|  | 5 |  |  |  |  | 137 |  | 
| 18 | 5 |  |  | 5 |  | 22 | use warnings; | 
|  | 5 |  |  |  |  | 9 |  | 
|  | 5 |  |  |  |  | 159 |  | 
| 19 | 5 |  |  | 5 |  | 24 | use base qw(WebDAO); | 
|  | 5 |  |  |  |  | 8 |  | 
|  | 5 |  |  |  |  | 1394 |  | 
| 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__ |