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->assignment->get_instance()->preventsubmissionnotingroup) {
            $usergroups = $this->assignment->get_all_groups($row->id);
            if (count($usergroups) > 1) {
                return get_string('multipleteamsgrader', 'assign');
            } else {
                return get_string('noteamgrader', 'assign');
            }
        }
        return get_string('defaultteam', 'assign');
    }
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->assignment->get_instance()->preventsubmissionnotingroup) {
            $usergroups = $this->assignment->get_all_groups($row->id);
            if (count($usergroups) > 1) {
                return get_string('multipleteamsgrader', 'assign');
            } else {
                return get_string('noteamgrader', 'assign');
            }
        }
        return get_string('defaultteam', 'assign');
    }
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 -> assignment -> get_instance ( ) -> preventsubmissionnotingroup ) { $ usergroups = $ this -> assignment -> get_all_groups ( $ row -> id ) ; if ( count ( $ usergroups ) > 1 ) { return get_string ( 'multipleteamsgrader' , 'assign' ) ; } else { return get_string ( 'noteamgrader' , 'assign' ) ; } } return get_string ( 'defaultteam' , 'assign' ) ; }
Get the team info for this user.

@param stdClass $row
@return string The team name
Get the team info for this user .