X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FPaginated.pm;h=e75de4ceb9873d839321039e4492e2dd9c9873fe;hb=9dfd320ff258071e3ad78dd6cf2d76e215efd4f7;hp=07e5b5e9caa76aa6e1e1e4dee232cc7994b4c4eb;hpb=e3815e78a82ba3abc12fc0daf61cb910186025ec;p=kivitendo-erp.git diff --git a/SL/DB/Helper/Paginated.pm b/SL/DB/Helper/Paginated.pm index 07e5b5e9c..e75de4ceb 100644 --- a/SL/DB/Helper/Paginated.pm +++ b/SL/DB/Helper/Paginated.pm @@ -79,13 +79,13 @@ __END__ =head1 NAME -SL::Helper::Paginated - Manager mixin for paginating results. +SL::DB::Helper::Paginated - Manager mixin for paginating results. =head1 SYNOPSIS In the manager: - use SL::Helper::Paginated; + use SL::DB::Helper::Paginated; __PACKAGE__->default_objects_per_page(10); # optional, defaults to 20 @@ -124,7 +124,7 @@ since they don't make sense with paginating. C should contain a value between 1 and the maximum pages. Will be sanitized. -The parameter C is optional. If not given the default value of the +The parameter C is optional, otherwise the default value of the 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 - 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 @@ -146,7 +146,7 @@ The returned hashref will have the following structure: ] } -You may assume that C is sanitized to be within 1..C. +You may assume that C is sanitized to be within 1..C. The common list is kept arbitrary by design, so that the algorithm to display the paginating controls can be changed by solely changing the