Structures_DataGrid
[ class tree: Structures_DataGrid ] [ index: Structures_DataGrid ] [ all elements ]

Source for file bind-atom.php

Documentation is available at bind-atom.php

  1. <?php
  2.  
  3. require_once 'Structures/DataGrid.php';    
  4.  
  5. // Create the datagrid
  6. $datagrid =new Structures_DataGrid();
  7.  
  8. // Use XPath and namespace to extract Atom entries
  9. $options = array(
  10.     'namespaces' => array('atom' => 'http://www.w3.org/2005/Atom'),
  11.     'path'       => '//atom:entry'
  12. );
  13. $feed 'http://www.php.net/feed.atom';
  14. $test $datagrid->bind($feed$options'XML');
  15. if (PEAR::isError($test)) {
  16.     exit($test->getMessage())
  17. }
  18.  
  19. // Render the feed as a table
  20. $datagrid->render();
  21.  
  22. ?>

Documentation generated on Mon, 11 Mar 2019 15:47:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.