Changeset 479 for trunk/lib/PageNumbers.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/PageNumbers.inc.php
r468 r479 95 95 public function setPerPage($per_page, $default=25, $save_value=true) 96 96 { 97 97 // (1) By provided argument, if valid. 98 98 // (2) By saved preference, if available. 99 99 // (3) Set to default value if provided and valid. … … 160 160 public function calculate() 161 161 { 162 162 $app =& App::getInstance(); 163 163 164 164 if (!$this->set_per_page_initialized) { … … 214 214 public function getLimitSQL() 215 215 { 216 217 216 $app =& App::getInstance(); 217 $db =& DB::getInstance(); 218 218 219 219 if (is_numeric($this->first_item) && is_numeric($this->_per_page)) { … … 232 232 public function printPerPageLinks($query_key='per_page') 233 233 { 234 234 $app =& App::getInstance(); 235 235 236 236 $sp = ''; … … 262 262 public function getPageNumURL($page_number, $carry_args=null) 263 263 { 264 264 $app =& App::getInstance(); 265 265 266 266 return $app->oHREF($this->url_base . $page_number, $carry_args);
Note: See TracChangeset
for help on using the changeset viewer.