Template::Flute::Pager - Data::Page class for Template::Flute
$pager = Template::Flute::Pager->new; # set page size $pager->page_size(10); # retrieve number of pages $pager->pages; # retrieve current page (numering starts at 1) $pager->current_page; # retrieve global position numbers for current page $pager->position_first; $pager->position_last; # select a page (numbering starts at 1) $pager->select_page(5);
Pager iterator.
Page size (defaults to 0).
Page position (defaults to 0).
Returns number of pages.
Returns current page, starting from 1.
Select page. Page numbering starts at 1.
Returns global position number of first item on current page.
Returns global position number of last item on current page.
Returns next record or undef.
Returns number of records.
Resets iterator.
Seeds the iterator.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2010-2016 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.