Angepasster Testfall payment
[kivitendo-erp.git] / SL / DB / Helper / Paginated.pm
index 07e5b5e..e75de4c 100644 (file)
@@ -79,13 +79,13 @@ __END__
 
 =head1 NAME
 
 
 =head1 NAME
 
-SL::Helper::Paginated - Manager mixin for paginating results.
+SL::DB::Helper::Paginated - Manager mixin for paginating results.
 
 =head1 SYNOPSIS
 
 In the manager:
 
 
 =head1 SYNOPSIS
 
 In the manager:
 
-  use SL::Helper::Paginated;
+  use SL::DB::Helper::Paginated;
 
   __PACKAGE__->default_objects_per_page(10); # optional, defaults to 20
 
 
   __PACKAGE__->default_objects_per_page(10); # optional, defaults to 20
 
@@ -124,7 +124,7 @@ since they don't make sense with paginating.
 C<page> should contain a value between 1 and the maximum pages. Will be
 sanitized.
 
 C<page> should contain a value between 1 and the maximum pages. Will be
 sanitized.
 
-The parameter C<per_page> is optional. If not given the default value of the
+The parameter C<per_page> is optional, otherwise the default value of the
 Manager will be used.
 
 =back
 Manager will be used.
 
 =back
@@ -135,7 +135,7 @@ The returned hashref will have the following structure:
 
   { per_page => 20,   # how many entries per page
     max      => 5,    # number of the last page
 
   { per_page => 20,   # how many entries per page
     max      => 5,    # number of the last page
-    cur      => 2,    # number of the current page
+    page     => 2,    # number of the current page
     common   => [     # an array of hashes for each page
       ...,
       { active  => 1, # set if this is the active page
     common   => [     # an array of hashes for each page
       ...,
       { active  => 1, # set if this is the active page
@@ -146,7 +146,7 @@ The returned hashref will have the following structure:
     ]
   }
 
     ]
   }
 
-You may assume that C<cur> is sanitized to be within 1..C<max>.
+You may assume that C<page> is sanitized to be within 1..C<max>.
 
 The common list is kept arbitrary by design, so that the algorithm to display
 the paginating controls can be changed by solely changing the
 
 The common list is kept arbitrary by design, so that the algorithm to display
 the paginating controls can be changed by solely changing the