tce_xml_results.php

Export all users' results in XML or JSON format.

Source: admin/code/tce_xml_results.php

Export all users’ results in XML or JSON format.

Functions

F_xml_export_results()

Export results in XML format.

function F_xml_export_results(
    mixed $test_id,
    mixed $group_id = 0,
    mixed $user_id = 0,
    mixed $startdate = 0,
    mixed $enddate = 0,
    mixed $display_mode = 1
): XML

Parameters:

  • $test_id (mixed): (int) test ID.
  • $group_id (mixed): (int) group ID - if greater than zero, filter stats for the specified user group.
  • $user_id (mixed): (int) user ID - if greater than zero, filter stats for the specified user.
  • $startdate (mixed): (int) start date ID - if greater than zero, filter stats for the specified starting date
  • $enddate (mixed): (int) end date ID - if greater than zero, filter stats for the specified ending date
  • $display_mode (mixed): (int) display mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.

Returns: XML: data

Source: admin/code/tce_xml_results.php:115