| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package # hidden from pause |
|
2
|
|
|
|
|
|
|
App::StaticImageGallery::Base::Any; |
|
3
|
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1545
|
use Carp; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
174
|
|
|
5
|
2
|
|
|
2
|
|
13
|
use DateTime; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
648
|
|
|
6
|
|
|
|
|
|
|
sub new { |
|
7
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
|
8
|
0
|
|
|
|
|
|
my $self = {}; |
|
9
|
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
my %args = @_; |
|
11
|
|
|
|
|
|
|
|
|
12
|
0
|
0
|
0
|
|
|
|
if ( defined $args{ctx} and ref( $args{ctx} ) eq 'App::StaticImageGallery' ) { |
|
13
|
0
|
|
|
|
|
|
$self->{_ctx} = $args{ctx}; |
|
14
|
|
|
|
|
|
|
} else { |
|
15
|
0
|
|
|
|
|
|
croak "Missing ctx or wrong type: " . ref $args{ctx}; |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
bless $self, $class; |
|
19
|
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
if ( $self->can('init') ){ |
|
21
|
0
|
|
|
|
|
|
$self->init(@_); |
|
22
|
|
|
|
|
|
|
}; |
|
23
|
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
return $self; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
sub ctx { return shift->{_ctx}; } |
|
28
|
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
sub opt { return shift->ctx->opt; } |
|
30
|
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
1
|
|
sub config { return shift->ctx->config; } |
|
32
|
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
1
|
|
sub verbose { return shift->ctx->opt->get_verbose(); } |
|
34
|
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
|
sub msg_verbose { return shift->ctx->msg_verbose(@_); } |
|
36
|
0
|
|
|
0
|
1
|
|
sub msg { return shift->ctx->msg(@_); } |
|
37
|
0
|
|
|
0
|
1
|
|
sub msg_warning { return shift->ctx->msg_warning(@_); } |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
__END__ |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
App::StaticImageGallery::Image - Handles a image |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
version 0.002 |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 METHODS |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 config |
|
57
|
|
|
|
|
|
|
=head2 ctx |
|
58
|
|
|
|
|
|
|
=head2 msg |
|
59
|
|
|
|
|
|
|
=head2 msg_verbose |
|
60
|
|
|
|
|
|
|
=head2 msg_warning |
|
61
|
|
|
|
|
|
|
=head2 new |
|
62
|
|
|
|
|
|
|
=head2 opt |
|
63
|
|
|
|
|
|
|
=head2 verbose |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
See L<App::StaticImageGallery/AUTHOR> and L<App::StaticImageGallery/CONTRIBUTORS>. |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |