Catalyst/Form/Metadata.pm

filter: Statementstmt 80.0% 20 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod 100% 3 / 3 totaltotal 78.3% 29 / 37 CC 1 SCAR 2.9
CC
1
Cov
80%
init_controller_prefix
2.0
init_field_methods
2.0
init_yui_datatable_methods
2.0
CRAP 1.3
« Catalyst/Excel.pm ↑ Summary Catalyst/Object.pm »
1 package Rose::DBx::Garden::Catalyst::Form::Metadata;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Data::Dump qw( dump );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw( Rose::HTMLx::Form::Related::RDBO::Metadata );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '0.180';
9  
10 1 ▶use Rose::Object::MakeMethods::Generic (
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 'scalar --get_set_init' => [ 'yui_datatable_methods', ], );
12  
13 =head1 NAME
14  
15 Rose::DBx::Garden::Catalyst::Form::Metadata - RHTMLO Form class metadata
16  
17 =head1 DESCRIPTION
18  
19 Rose::DBx::Garden::Catalyst::Form::Metadata interrogates and caches interrelationships
20 between Form classes and the RDBO classes they represent.
21  
22 You typically access an instance of this class via the metadata() method in
23 your Form class.
24  
25 =head1 METHODS
26  
27 =cut
28  
29 =head2 init_controller_prefix
30  
31 The default is 'RDGC'.
32  
33 =cut
34  
35 0 ▶sub init_controller_prefix {'RDGC'}
Subroutine init_controller_prefix: not called CC=1 SCAR=6.9
Pod documented
36  
37 =head2 init_field_uris
38  
39 Should return a hashref of field names to a value that will be passed
40 to Catalyst's uri_for() method. Used primarily for per-column
41 click behaviour in a YUI DataTable.
42  
43 =cut
44  
45 =head2 init_field_methods
46  
47 Alias for yui_datatable_methods() for backwards compat.
48  
49 =cut
50  
51 0 ▶sub init_field_methods {
Subroutine init_field_methods: not called CC=1 SCAR=6.9
Pod documented
52 0 my $self = shift;
53 0 return $self->yui_datatable_methods(@_);
54 }
55  
56 =head2 init_yui_datatable_methods
57  
58 Acts like init_field_methods() does in Rose::HTMLx::Form::Related::Metadata.
59  
60 =cut
61  
62 0 ▶sub init_yui_datatable_methods {
Subroutine init_yui_datatable_methods: not called CC=1 SCAR=6.9
Pod documented
63 0 my $self = shift;
64 0 return $self->form->field_names;
65 }
66  
67 1 1;
68  
69 __END__
70  
71 =head1 AUTHOR
72  
73 Peter Karman, C<< <karman at cpan.org> >>
74  
75 =head1 BUGS
76  
77 Please report any bugs or feature requests to
78 C<bug-rose-dbx-garden-catalyst at rt.cpan.org>, or through the web interface at
79 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Rose-DBx-Garden-Catalyst>.
80 I will be notified, and then you'll automatically be notified of progress on
81 your bug as I make changes.
82  
83 =head1 SUPPORT
84  
85 You can find documentation for this module with the perldoc command.
86  
87 perldoc Rose::DBx::Garden::Catalyst
88  
89 You can also look for information at:
90  
91 =over 4
92  
93 =item * AnnoCPAN: Annotated CPAN documentation
94  
95 L<http://annocpan.org/dist/Rose-DBx-Garden-Catalyst>
96  
97 =item * CPAN Ratings
98  
99 L<http://cpanratings.perl.org/d/Rose-DBx-Garden-Catalyst>
100  
101 =item * RT: CPAN's request tracker
102  
103 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Rose-DBx-Garden-Catalyst>
104  
105 =item * Search CPAN
106  
107 L<http://search.cpan.org/dist/Rose-DBx-Garden-Catalyst>
108  
109 =back
110  
111 =head1 ACKNOWLEDGEMENTS
112  
113 The Minnesota Supercomputing Institute C<< http://www.msi.umn.edu/ >>
114 sponsored the development of this software.
115  
116 =head1 COPYRIGHT & LICENSE
117  
118 Copyright 2008 by the Regents of the University of Minnesota.
119  
120 This program is free software; you can redistribute it and/or modify it
121 under the same terms as Perl itself.
122  
123  
124 =cut
« Catalyst/Excel.pm ↑ Summary Catalyst/Object.pm »