original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Get the team info for this user.
  
  @param stdClass $row
  @return string The team name
docstring_tokens: Get the team info for this user .