mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-27 06:38:03 -05:00
30 lines
547 B
PHP
30 lines
547 B
PHP
<?php
|
|
|
|
// Un système de pagination beaucoup plus simple que Paginator
|
|
// mais mieux adapté à nos besoins
|
|
class RSSPaginator {
|
|
private $items = array ();
|
|
private $next = '';
|
|
|
|
public function __construct ($items, $next) {
|
|
$this->items = $items;
|
|
$this->next = $next;
|
|
}
|
|
|
|
public function isEmpty () {
|
|
return empty ($this->items);
|
|
}
|
|
|
|
public function items () {
|
|
return $this->items;
|
|
}
|
|
|
|
public function render ($view, $getteur) {
|
|
$view = APP_PATH . '/views/helpers/'.$view;
|
|
|
|
if (file_exists ($view)) {
|
|
include ($view);
|
|
}
|
|
}
|
|
}
|