Testing: Added assert

skala
Yannick Warnier 12 years ago
parent c00e9310c6
commit 974c19ab77
  1. 9
      main/inc/lib/events.lib.inc.php

@ -562,18 +562,21 @@ function exercise_attempt_hotspot($exe_id, $question_id, $answer_id, $correct, $
}
/**
* @author Yannick Warnier <yannick.warnier@dokeos.com>
* @desc Record information for common (or admin) events (in the track_e_default table)
* Records information for common (or admin) events (in the track_e_default table)
* @author Yannick Warnier <yannick.warnier@beeznest.com>
* @param string Type of event
* @param string Type of value
* @param string Value
* @param string Timestamp (defaults to null)
* @param integer User ID (defaults to null)
* @param string Course code (defaults to null)
* @assert ('','','') === false
*/
function event_system($event_type, $event_value_type, $event_value, $datetime = null, $user_id = null, $course_code = null) {
global $TABLETRACK_DEFAULT;
if (empty($event_type)) {
return false;
}
$event_type = Database::escape_string($event_type);
$event_value_type = Database::escape_string($event_value_type);

Loading…
Cancel
Save