Template::Flute::Pager - Data::Page 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;
Pager iterator.
Page size (defaults to 0).
Page position (defaults to 0).
Returns number of pages.
Returns current page, starting from 1.
Select page, starting from 1.
Returns next record or undef.
Returns number of records.
Resets iterator.
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.