tce_functions_email_reports.php

Functions to send email reports to users.

Source: admin/code/tce_functions_email_reports.php

Functions to send email reports to users.

Constants

FORCE_CURL

const FORCE_CURL = true

Source: admin/code/tce_functions_email_reports.php:119

Functions

F_send_report_emails()

Sends email test reports to users.

function F_send_report_emails(
    mixed $test_id,
    mixed $user_id = 0,
    mixed $testuser_id = 0,
    mixed $group_id = 0,
    mixed $startdate = 0,
    mixed $enddate = 0,
    mixed $mode = 0,
    mixed $display_mode = 1,
    mixed $show_graph = false
)

Parameters:

  • $test_id (mixed): (int) TEST ID
  • $user_id (mixed): (int) USER ID (0 means all users)
  • $testuser_id (mixed): (int) test-user ID - if greater than zero, filter stats for the specified test-user.
  • $group_id (mixed): (int) GROUP ID (0 means all groups)
  • $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
  • $mode (mixed): (int) type of report to send: 0=detailed report; 1=summary report (without questions)
  • $display_mode (mixed): display (int) mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.
  • $show_graph (mixed): (boolean) If true display the score graph.

Source: admin/code/tce_functions_email_reports.php:37