Source for file xmlpagination.php

Documentation is available at xmlpagination.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('REFilePagination');
  17. REPClasses::import('REPXmlItems');
  18. $file new REPXmlItems('db.xml',array('name','age','sex'));
  19.  
  20. $pagination new REFilePagination($file);
  21. $pagination->itemPerPage(2);
  22.  
  23. $page $pagination->page();
  24.  
  25. foreach ($page as $item)
  26. {
  27.     print "------Adatok---------<br />".PHP_EOL;
  28.     foreach ($item as $key => $value)
  29.     {
  30.         print $key.' = '$value."<br />";
  31.     }
  32. }
  33.  
  34. print $pagination->pageLinks(2);
  35. ?>

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