Teng::Plugin::Pager::DataPageset - Pager using DataPageset
package MyApp::DB; use parent qw/Teng/; __PACKAGE__->load_plugin('Pager::DataPageset'); package main; my $db = MyApp::DB->new(dbh => $dbh); my $page = $c->req->param('page'); my ($rows, $pager) = $db->search_with_data_pageset(user => { type => 3 },{ page => $page, rows => 5, total_entries => 10000, pages_per_set => 5, });
This is a helper for pagination using Data::Pageset.
This method returns ArrayRef[Teng::Row] and instance of Data::Pageset.
Current page number.
The number of entries per page.
See Data::Pageset.
Copyright (C) tokubass.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokubass <tokubass {at} cpan.org>
To install Teng::Plugin::Pager::DataPageset, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Teng::Plugin::Pager::DataPageset
CPAN shell
perl -MCPAN -e shell install Teng::Plugin::Pager::DataPageset
For more information on module installation, please visit the detailed CPAN module installation guide.