|
@@ 317-320 (lines=4) @@
|
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
// if none could be determine, try to calculate it |
| 317 |
|
if (empty($this->config['current']) and $this->config['offset'] and $this->config['limit']) |
| 318 |
|
{ |
| 319 |
|
$this->config['current'] = (int) ($this->config['offset'] / $this->config['limit']) + 1; |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
// if all else fails, default to one |
| 323 |
|
if (empty($this->config['current'])) |
|
@@ 330-333 (lines=4) @@
|
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
// do we need to calculate the total number of pages |
| 330 |
|
if (empty($this->config['totalPages']) and ! empty($this->config['totalItems']) and ! empty($this->config['limit'])) |
| 331 |
|
{ |
| 332 |
|
$this->config['totalPages'] = (int) ($this->config['totalItems'] / $this->config['limit']) + 1; |
| 333 |
|
} |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
/** |