NAME
Rose::DBx::Garden::Catalyst::YUI - playing nice with YUI, TT, and RHTMLO
DESCRIPTION
This class implements methods for easing development of YUI applications using TT and RHTMLO.
METHODS
This class inherits from Rose::Object. Only new and overridden methods are documented here.
show_remove_button
Boolean method. Default is false. Used in serialize().
init_takes_object_as_argument
Set hash ref of relationship names that take the parent RDBO object as a single argument. Used in serialize().
init_datetime_format
Set strftime-style DateTime format string. Default is '%Y-%m-%d %H:%M:%S'. Used in serialize().
datatable( opts )
Returns a Rose::DBx::Garden::Catalyst::YUI::DataTable object ready for the yui_datatable.tt template.
opts should consist of:
- results
-
results may be either a CatalystX::CRUD::Results object or a CatalystX::CRUD::Object object.
- controller
-
The Catalyst::Controller instance for the request.
- form
-
The current Form object.
- rel_info
-
If results is a CatalystX::CRUD::Object object, then a rel_info should be passed indicating which relationship to pull data from.
- field_names
-
Optional arrayref of field names to include. Defaults to yui_datatable_methods() defined in form->meta.
serialize( rdbo, rel_info, col_names, parent_object, cat_context, show_related_values )
Serialize a RDBO object rdbo. This is required.
The following optional params are:
rel_info is the struct returned by Form->meta->relationship_info() method.
col_names is the list of column names to include in the serialized struct.
parent_object is the originating RDBO object, in the case where you are serializing related objects.
cat_context is a $c object.
show_related_values is a hash ref of methods and foreign fields, as defined by RDGC::YUI::DataTable.
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
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
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
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Rose-DBx-Garden-Catalyst
Search CPAN
ACKNOWLEDGEMENTS
The Minnesota Supercomputing Institute http://www.msi.umn.edu/
sponsored the development of this software.
COPYRIGHT & LICENSE
Copyright 2008 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.