When searching through large amounts of data, it is often the case that a
result set is returned that is larger than we want to display on one page. This results in wanting to page through various pages of data. The maths behind this is unfortunately fiddly, hence this module. The main concept is that you pass in the number of total entries, the number of entries per page, and the current page number. You can then call methods to find out how many pages of information there are, and what number the first and last entries on the current page really are. WWW: http://search.cpan.org/dist/Data-Page/
This commit is contained in:
parent
980a1f627f
commit
c42d1f3f31
4 changed files with 37 additions and 0 deletions
11
p5-Data-Page/DESCR
Normal file
11
p5-Data-Page/DESCR
Normal file
|
@ -0,0 +1,11 @@
|
|||
When searching through large amounts of data, it is often the case that a
|
||||
result set is returned that is larger than we want to display on one page. This
|
||||
results in wanting to page through various pages of data. The maths behind this
|
||||
is unfortunately fiddly, hence this module.
|
||||
|
||||
The main concept is that you pass in the number of total entries, the number of
|
||||
entries per page, and the current page number. You can then call methods to
|
||||
find out how many pages of information there are, and what number the first and
|
||||
last entries on the current page really are.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Data-Page/
|
21
p5-Data-Page/Makefile
Normal file
21
p5-Data-Page/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2005/07/27 17:54:03 kuli0020 Exp $
|
||||
|
||||
DISTNAME= Data-Page-2.00
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= databases perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/}
|
||||
|
||||
MAINTAINER= kuli0020@umn.edu
|
||||
HOMEPAGE= http://search.cpan.org/dist/Data-Page/
|
||||
COMMENT= Pager utility for Class::DBI
|
||||
|
||||
BUILD_DEPENDS= p5-Class-Accessor-Chained>=0:../../devel/p5-Class-Accessor-Chained
|
||||
DEPENDS+= p5-Test-Exception>=0:../../devel/p5-Test-Exception
|
||||
DEPENDS+= p5-Test-Simple>=0:../../devel/p5-Test-Simple
|
||||
|
||||
PERL_MODBUILD= yes
|
||||
|
||||
PERL5_PACKLIST= auto/Data/Page/.packlist
|
||||
|
||||
.include "../../lang/perl5/module.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
1
p5-Data-Page/PLIST
Normal file
1
p5-Data-Page/PLIST
Normal file
|
@ -0,0 +1 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/27 17:54:03 kuli0020 Exp $
|
4
p5-Data-Page/distinfo
Normal file
4
p5-Data-Page/distinfo
Normal file
|
@ -0,0 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2005/07/27 17:54:03 kuli0020 Exp $
|
||||
|
||||
SHA1 (Data-Page-2.00.tar.gz) = 729879502eedf01a4d0e92715ea17f74e591b213
|
||||
Size (Data-Page-2.00.tar.gz) = 6448 bytes
|
Loading…
Reference in a new issue