Template::Flute::Paginator - Generic paginator class for Template::Flute
$paginator = Template::Flute::Paginator->new; # set page size $paginator->page_size(10); # retrieve number of pages $paginator->pages; # retrieve current page (starting with 1) $paginator->current_page; # retrieve global position numbers for current page $paginator->position_first; $paginator->position_last; # select a page (starting with 1) $paginator->select_page;
Returns number of pages.
Returns current page, starting from 1.
Select page, starting from 1.
Returns next record or undef.
Returns number of records.
Seeds the iterator.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2010-2014 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Template::Flute::Iterator
To install Template::Flute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Flute
CPAN shell
perl -MCPAN -e shell install Template::Flute
For more information on module installation, please visit the detailed CPAN module installation guide.