RSSPaginator.php 446 B

123456789101112131415161718192021222324252627
  1. <?php
  2. class RSSPaginator {
  3. private $items = array ();
  4. private $next = '';
  5. public function __construct ($items, $next) {
  6. $this->items = $items;
  7. $this->next = $next;
  8. }
  9. public function isEmpty () {
  10. return empty ($this->items);
  11. }
  12. public function items () {
  13. return $this->items;
  14. }
  15. public function render ($view, $getteur) {
  16. $view = APP_PATH . '/views/helpers/'.$view;
  17. if (file_exists ($view)) {
  18. include ($view);
  19. }
  20. }
  21. }