Table of contents
Source: shared/code/tce_functions_pdf_results.php
Function to build the PDF document of test results.
Functions
F_getResultsPDF()
Build the PDF document of test results.
The caller is responsible for authorizing the requested test, group and user.
function F_getResultsPDF(
mixed $mode,
mixed $test_id,
mixed $group_id,
mixed $user_id,
mixed $testuser_id,
mixed $startdate,
mixed $enddate,
mixed $full_order_field,
mixed $display_mode,
mixed $show_graph,
mixed $pubmode,
mixed $filter
): TcePdfReport|null
Parameters:
$mode(mixed): (int) document mode: 1=all users results, 3=detailed report for single user; 4=detailed report for all users; 5=detailed report for all users with only TEXT questions.$test_id(mixed): (int) test ID (0 = all authorized tests).$group_id(mixed): (int) group ID (0 = all groups).$user_id(mixed): (int) user ID (0 = all users).$testuser_id(mixed): (int) test-user ID (0 = all test-users).$startdate(mixed): (string) start date filter, empty for none.$enddate(mixed): (string) end date filter, empty for none.$full_order_field(mixed): (string) ORDER BY portion of the SQL selection query.$display_mode(mixed): (int) display mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.$show_graph(mixed): (int) if not zero, display the score graph.$pubmode(mixed): (boolean) if true, filter the results for the public interface.$filter(mixed): (string) URL query string used for the back-link QR-Code.
Returns: TcePdfReport|null: PDF document, or null when the mode is invalid or there are no results.