Exemple #1
0
function hotpot_user_complete($course, $user, $mod, $hotpot)
{
    /// Print a detailed representation of what a  user has done with
    /// a given particular instance of this module, for user activity reports.
    $report = hotpot_user_outline($course, $user, $mod, $hotpot);
    if (empty($report)) {
        print get_string("noactivity", "hotpot");
    } else {
        $date = userdate($report->time, get_string('strftimerecentfull'));
        print $report->info . ' ' . get_string('mostrecently') . ': ' . $date;
    }
    return true;
}
Exemple #2
0
/**
 * Print a detailed representation of what a  user has done with
 * a given particular instance of this module, for user activity reports.
 *
 * @param object $course
 * @param object $user
 * @param object $mod
 * @param object $hotpot
 */
function hotpot_user_complete($course, $user, $mod, $hotpot)
{
    $report = hotpot_user_outline($course, $user, $mod, $hotpot);
    if (empty($report)) {
        print get_string("noactivity", "hotpot");
    } else {
        $date = userdate($report->time, get_string('strftimerecentfull'));
        print $report->info . ' ' . get_string('mostrecently') . ': ' . $date;
    }
    return true;
}