Source for file filepagination.php

Documentation is available at filepagination.php

  1. <?php
  2. /**
  3.  * Módosítva: 2010.03.06.
  4.  *
  5.  * @author Takács Ákos (Rimelek), programmer [at] rimelek [dot] hu
  6.  * @copyright Copyright (C) 2010, Takács Ákos
  7.  * @version 1.0
  8.  * @package REPagination
  9.  */
  10.  
  11. /**
  12.  * @ignore
  13.  */
  14. //require_once 'REPagination/classes/REPClasses.class.php';
  15. require_once '../classes/REPClasses.class.php';
  16. REPClasses::import('REPFileItems');
  17. REPClasses::import('REFilePagination');
  18.  
  19. $file new REPFileItems('db.txt',array('egy','ketto','harom'),'&&');
  20.  
  21. $pagination new REFilePagination($file);
  22. $pagination->itemPerPage(2);
  23.  
  24. $page $pagination->page();
  25.  
  26. foreach ($page as $item)
  27. {
  28.     print "------Adatok---------<br />".PHP_EOL;
  29.     foreach ($item as $key => $value)
  30.     {
  31.         print $key.' = '$value."<br />";
  32.     }
  33. }
  34.  
  35. print $pagination->pageLinks(2);
  36.  
  37. ?>

Documentation generated on Sat, 06 Mar 2010 22:00:15 +0100 by phpDocumentor 1.4.1