I would like to add the name of the teacher(s) to the grade report. I have been looking at the moodle code and I know that I need the following functions:
$teachers = get_course_teachers($course->id);
$strteachers = get_string("teachers");
Teachers of course is a multi-dimensional array with teacher "objects" that I can access like so:
foreach($teachers as $teacher)
{
echo $teacher->firstname." ".$teacher->lastname;
}
So far so good. Now how could I actually print this information in the grades table, let say in rows below the top row (the one that says Grades)
Thanks,
Luis