I think the best way to do this is to look at the set's type ($set->assignment_type()
) and see if it matches /gateway/
. If you're looking at the set versions that students are actually working, the set name will have ,vN
appended, where N
is the version number.
That said, I don't know that the set object is available in the PGcourse file.
Gavin