. /** * This file contains functions used by the outline reports * * @package report * @subpackage outline * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; require_once(dirname(__FILE__).'/lib.php'); require_once($CFG->dirroot.'/course/lib.php'); function report_outline_print_row($mod, $instance, $result) { global $OUTPUT, $CFG; $image = "pix_url('icon', $mod->modname) . "\" class=\"icon\" alt=\"$mod->modfullname\" />"; echo ""; echo "$image"; echo ""; echo " modfullname\""; echo " href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">".format_string($instance->name,true).""; echo "   "; echo ""; if (isset($result->info)) { echo "$result->info"; } else { echo "

-

"; } echo ""; echo "   "; if (!empty($result->time)) { $timeago = format_time(time() - $result->time); echo "".userdate($result->time)." ($timeago)"; } echo ""; }