NAME
CatalystX::CRUD::YUI::Controller - base controller
SYNOPSIS
# TODO
DESCRIPTION
# TODO
METHODS
Only new or overridden method are documented here.
json_mime
Returns JSON MIME type. Default is 'application/json; charset=utf-8'.
auto
Fix up some YUI parameter names and stash the form object. See the Catalyst documentation for other special features of the auto() Private method.
default
Redirects to URI for 'count' in same namespace.
yui_datatable( context, arg )
Public URI method. Like calling search() but returns JSON in format the YUI DataTable expects.
yui_datatable_count( context, arg )
Public URI method. Like calling count() but returns JSON in format the YUI DataTable expects.
yui_related_datatable( oid, relationship_name )
Public URI method. Returns JSON like yui_datatable but for the records referred to by relationship_name.
do_related_search( context, relationship_name )
Sets up stash() to mimic the foreign controller represented by relationship_name.
remove
Overrides superclass method to set the content response to 'Ok' on success, or a generic error string on failure.
CAUTION: This URI is for ManyToMany only. Using it on OneToMany or ManyToOne rel_name values will delete the related row altogether.
add
Overrides superclass method to return the new record as JSON on success, or a generic error string on failure.
form_to_object
Overrides the base CRUD method to catch errors if the expected return format is JSON.
postcommit
Overrides base method to render response as JSON where necessary. The return
request param is checked for the string 'json' and the object is serialized accordingly.
autocomplete_columns
Should return arrayref of fields to search when the autocomplete() URI method is requested.
Set this value in config(). Default is a no-op.
autocomplete_method
Which method should be called on each search result to create the response list.
Default is the first item in autocomplete_columns().
Set this value in config(). Default is a no-op.
autocomplete( context )
Public URI method. Supports the Rose::HTMLx::Form::Field::Autocomplete API.
AUTHOR
Peter Karman, <karman@cpan.org>
BUGS
Please report any bugs or feature requests to bug-catalystx-crud-yui@rt.cpan.org
, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
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. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.