| 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 | 5 | our $VERSION = '0.01'; | |
| 16 | 5 | ▶ | use WebDAO; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 5 | ▶ | use base qw(WebDAO); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 5 | __PACKAGE__->mk_attr( _path=>undef, _args=>undef); | |
| 21 | |||
| 22 | |||
| 23 | sub init { | ||
| 24 | 0 | ▶ | my $self = shift; |
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 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 | ▶ | my $self = shift; |
|
Subroutine
fetch: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 33 | 0 | my $sess = shift; | |
| 34 | 0 | my @path = @{ $sess->call_path( $self->_path ) }; | |
| 35 | 0 | my ( $src, $res ) = $self->_root_->_traverse_( $sess, @path ); | |
| 36 | 0 | return $res; | |
| 37 | } | ||
| 38 | |||
| 39 | 5 | 1; | |
| 40 | __DATA__ | ||
| 41 | |||
| 42 | =head1 SEE ALSO | ||
| 43 | |||
| 44 | http://sourceforge.net/projects/webdao | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt> | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | Copyright 2002-2012 by Zahatski Aliaksandr | ||
| 53 | |||
| 54 | This library is free software; you can redistribute it and/or modify | ||
| 55 | it under the same terms as Perl itself. | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||