Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
xml_list.php
Go to the documentation of this file.
1 <?php
3 
4  function handle(&$params){
5 
6  import('Dataface/XMLTool.php');
7  $xml = new Dataface_XMLTool();
9  $query =& $app->getQuery();
10  $table =& Dataface_Table::loadTable($query['-table']);
11  echo $xml->header();
13  echo "<![CDATA[";
14  print_r($_SESSION);
15  echo "]]>";
16  echo "<user>".$auth->getLoggedInUsername()."</user>";
17  echo $xml->toXML($table);
18  //echo $xml->toXML($app->getRecord());
19  echo $xml->toXML($app->getResultSet());
20  echo $xml->footer();
21  exit;
22  }
23 }
24 
25 ?>