Main > Programming > Libraries >

Data::SpreadPagination 0.1.2

Data::SpreadPagination 0.1.2

Sponsored Links

Data::SpreadPagination 0.1.2 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.007 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 827
Date added: 2007-07-19
Publisher: Jody Belka

Data::SpreadPagination 0.1.2 description

Data::SpreadPagination is a Perl module for page numbering and spread pagination.

SYNOPSIS

use Data::SpreadPagination;
my $pageInfo = Data::SpreadPagination->new({
totalEntries => $totalEntries,
entriesPerPage => $entriesPerPage,
# Optional, will use defaults otherwise.
# only 1 of currentPage / startEntry can be provided.
currentPage => $currentPage,
startEntry => $startEntry,
maxPages => $maxPages,
});

# General page information
print " First page: ", $pageInfo->first_page, "n";
print " Last page: ", $pageInfo->last_page, "n";
print " Next page: ", $pageInfo->next_page, "n";
print " Previous page: ", $pageInfo->previous_page, "n";

# Results on current page
print "First entry on page: ", $pageInfo->first, "n";
print " Last entry on page: ", $pageInfo->last, "n";

# Page range information
my $pageRanges = $pageInfo->page_ranges;

# Print out the page spread
foreach my $page ($pageInfo->pages_in_spread()) {
if (!defined $page) {
print "... ";
} elsif ($page == $pageInfo->current_page) {
print "$page ";
} else {
print "$page ";
}
}

The object produced by Data::SpreadPagination can be used to create a spread pagination navigator. It inherits from Data::Page, and has access to all of the methods from this object.

In addition, it also provides methods for creating a pagination spread, to allow for keeping the number of pagenumbers displayed within a sensible limit, but at the same time allowing easy navigation.

The object can easily be passed to a templating system such as Template Toolkit or be used within a script.

Data::SpreadPagination 0.1.2 Screenshot

Advertisements

Data::SpreadPagination 0.1.2 Keywords

Bookmark Data::SpreadPagination 0.1.2

Hyperlink code:
Link for forum:

Data::SpreadPagination 0.1.2 Copyright

WareSeeker periodically updates pricing and software information of Data::SpreadPagination 0.1.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Data::SpreadPagination 0.1.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Data::Stag is a Perl module with structured tags datastructures. Free Download
Data::Page::Viewport is a Perl module to scroll thru data a page, or just an item, at a time. Free Download
Relations is a Perl module with functions to use with databases and queries. Free Download
Prima::Printer is a system printing services. Free Download
dtRdr::Plugins::Library is a Perl module that can handle library plugins. Free Download
App::Modular is a Perl module with modularization framework for perl programs. Free Download
Data::Password::Manager is a Perl module to generate, check, manage crypt - des passwords. Free Download
Data::Page is a Perl module that helps when paging through sets of results. Free Download