line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Helper::View::RRDGraph; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Catalyst::Helper::View::RRDGraph::VERSION = '0.10'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
2269
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
7
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
88
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Catalyst::Helper::View::RRDGraph - Helper for RRDGraph Views |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
script/create.pl view RRDGraph RRDGraph |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Helper for RRDGraph Views. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head2 METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head3 mk_compclass |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub mk_compclass { |
28
|
0
|
|
|
0
|
1
|
|
my ( $self, $helper ) = @_; |
29
|
0
|
|
|
|
|
|
my $file = $helper->{file}; |
30
|
0
|
|
|
|
|
|
$helper->render_file( 'compclass', $file ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SEE ALSO |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, |
36
|
|
|
|
|
|
|
L<Catalyst::Response>, L<Catalyst::Helper> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Jose Luis Martinez Torres, C<jlmartinez@capside.com> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This helper was based, to not say ripped off of Catalyst::View::TT |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 LICENSE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify |
47
|
|
|
|
|
|
|
it under the same terms as perl itself. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__DATA__ |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__compclass__ |
56
|
|
|
|
|
|
|
package [% class %]; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
use strict; |
59
|
|
|
|
|
|
|
use base 'Catalyst::View::RRDGraph'; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__PACKAGE__->config(); |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 NAME |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
[% class %] - RRDGraph View for [% app %] |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 DESCRIPTION |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
RRDGraph View for [% app %]. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
[% author %] |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SEE ALSO |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
L<[% app %]> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 LICENSE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify |
82
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
1; |