GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::SKINNY::PAGER::PAGE (3)

.ds Aq ’

NAME

DBIx::Skinny::Pager::Page - simple wrapper of Data::Page.

CONTENTS

SYNOPSIS



  my $rs = Proj::DB->resultset_with_pager(MySQLFoundRows);
  # ... do something with $rs.
  my ($iter, $pager) = $rs->retrieve;
  # $iter is a DBIx::Skinny::Iterator
  isa_ok($pager, "Data::Page");
  $pager->to_hash # => {
                  #   total_entries => 70,
                  #   current_page => 2,
                  #   entries_per_page => 20,
                  #   previous_page => 1,
                  #   next_page     => 3,
                  # }



DESCRIPTION

DBIx::Skinny::Pager::Page is a simple wrapper of Data::Page. you can handle it like a Data::Page object.

DBIx::Skinny::Pager’s retrieve method return a wrapped DBIx::Skinny::Pager::Page object. It’s for distinguish what logic was used from view layer.

AUTHOR

Keiji Yoshimi <walf443 at gmail dot com>

SEE ALSO

+<DBIx::Skinny>, +<DBIx::Skinny::SQL>, +<DBIx::Skinny::Mixin>, +<Data::Page>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::SKINNY::PAGER::PAGE (3) 2011-05-01

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.