Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 03469a05

Von Sven Schöling vor fast 12 Jahren hinzugefügt

  • ID 03469a053183167e35d12b686ab760ae5b335605
  • Vorgänger e3815e78
  • Nachfolger 793244dd

Doku nochmal an mosus Refactoring angepasst

Unterschiede anzeigen:

SL/DB/Helper/Paginated.pm
135 135

  
136 136
  { per_page => 20,   # how many entries per page
137 137
    max      => 5,    # number of the last page
138
    cur      => 2,    # number of the current page
138
    page     => 2,    # number of the current page
139 139
    common   => [     # an array of hashes for each page
140 140
      ...,
141 141
      { active  => 1, # set if this is the active page
......
146 146
    ]
147 147
  }
148 148

  
149
You may assume that C<cur> is sanitized to be within 1..C<max>.
149
You may assume that C<page> is sanitized to be within 1..C<max>.
150 150

  
151 151
The common list is kept arbitrary by design, so that the algorithm to display
152 152
the paginating controls can be changed by solely changing the

Auch abrufbar als: Unified diff