Ejemplo n.º 1
0
 /**
  * Get the team info for this user.
  *
  * @param stdClass $row
  * @return string The team name
  */
 public function col_team(stdClass $row)
 {
     $submission = false;
     $group = false;
     $this->get_group_and_submission($row->id, $group, $submission, -1);
     if ($group) {
         return $group->name;
     } else {
         if ($this->seplment->get_instance()->preventsubmissionnotingroup) {
             $usergroups = $this->seplment->get_all_groups($row->id);
             if (count($usergroups) > 1) {
                 return get_string('multipleteamsgrader', 'sepl');
             } else {
                 return get_string('noteamgrader', 'sepl');
             }
         }
     }
     return get_string('defaultteam', 'sepl');
 }