CatalystX::CRUD::Results - search results class
# in .tt file Your search returned [% results.count %] total hits. Your query was [% results.query %]. You are on page [% results.pager.current_page %]. [% FOREACH r IN results.results %] [% loop.count %]: [% r.name %] [% END %]
CatalystX::CRUD::Results is a class for search results from a CatalystX::CRUD::Controller. See the do_search() method in CatalystX::CRUD::Controller.
The following read-only accessors are available:
Returns total number of results.
Returns Data::Pageset object for paging through results.
Returns the search query.
Returns array ref of current found objects.
Returns next result. If results() is an arrayref, shift() is used. Otherwise, the results() value is assumed to act like a CatalystX::CRUD::Iterator and its next() method will be called.
Hook for the JSON module so that you can pass a Results object directly to encode_json(). Calls serialize() internally.
Returns object as a hash ref. Objects are overloaded to call Data::Dump::dump( $results->serialize ) in string context.
Peter Karman, <perl at peknet.com>
<perl at peknet.com>
Please report any bugs or feature requests to bug-catalystx-crud at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CatalystX-CRUD. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalystx-crud at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc CatalystX::CRUD
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/CatalystX-CRUD
CPAN Ratings
http://cpanratings.perl.org/d/CatalystX-CRUD
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CatalystX-CRUD
Search CPAN
http://search.cpan.org/dist/CatalystX-CRUD
Copyright 2008 Peter Karman, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CatalystX::CRUD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::CRUD
CPAN shell
perl -MCPAN -e shell install CatalystX::CRUD
For more information on module installation, please visit the detailed CPAN module installation guide.