Rose::DBx::Garden::Catalyst::Form::Metadata - RHTMLO Form class metadata


Rose-DBx-Garden-Catalyst documentation Contained in the Rose-DBx-Garden-Catalyst distribution.

Index


Code Index:

NAME

Top

Rose::DBx::Garden::Catalyst::Form::Metadata - RHTMLO Form class metadata

DESCRIPTION

Top

Rose::DBx::Garden::Catalyst::Form::Metadata interrogates and caches interrelationships between Form classes and the RDBO classes they represent.

You typically access an instance of this class via the metadata() method in your Form class.

METHODS

Top

init_controller_prefix

The default is 'RDGC'.

init_field_uris

Should return a hashref of field names to a value that will be passed to Catalyst's uri_for() method. Used primarily for per-column click behaviour in a YUI DataTable.

init_field_methods

Alias for yui_datatable_methods() for backwards compat.

init_yui_datatable_methods

Acts like init_field_methods() does in Rose::HTMLx::Form::Related::Metadata.

AUTHOR

Top

Peter Karman, <karman at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-rose-dbx-garden-catalyst at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Rose-DBx-Garden-Catalyst. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Rose::DBx::Garden::Catalyst

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Rose-DBx-Garden-Catalyst

* CPAN Ratings

http://cpanratings.perl.org/d/Rose-DBx-Garden-Catalyst

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Rose-DBx-Garden-Catalyst

* Search CPAN

http://search.cpan.org/dist/Rose-DBx-Garden-Catalyst

ACKNOWLEDGEMENTS

Top

The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.

COPYRIGHT & LICENSE

Top


Rose-DBx-Garden-Catalyst documentation Contained in the Rose-DBx-Garden-Catalyst distribution.
package Rose::DBx::Garden::Catalyst::Form::Metadata;
use strict;
use warnings;
use Carp;
use Data::Dump qw( dump );
use base qw( Rose::HTMLx::Form::Related::RDBO::Metadata );

our $VERSION = '0.15';

use Rose::Object::MakeMethods::Generic (
    'scalar --get_set_init' => [ 'yui_datatable_methods', ], );

sub init_controller_prefix {'RDGC'}

sub init_field_methods {
    my $self = shift;
    return $self->yui_datatable_methods(@_);
}

sub init_yui_datatable_methods {
    my $self = shift;
    return $self->form->field_names;
}

1;

__END__