original_string: public function format_submission_for_log(stdClass $submission) {
          global $DB;
  
          $info = '';
          if ($submission->userid) {
              $user = $DB->get_record('user', array('id' => $submission->userid), '*', MUST_EXIST);
              $name = fullname($user);
          } else {
              $group = $this->get_submission_group($submission->userid);
              if ($group) {
                  $name = $group->name;
              } else {
                  $name = get_string('defaultteam', 'assign');
              }
          }
          $status = get_string('submissionstatus_' . $submission->status, 'assign');
          $params = array('id'=>$submission->userid, 'fullname'=>$name, 'status'=>$status);
          $info .= get_string('submissionlog', 'assign', $params) . ' <br>';
  
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible()) {
                  $info .= '<br>' . $plugin->format_for_log($submission);
              }
          }
  
          return $info;
      }
code: public function format_submission_for_log(stdClass $submission) {
          global $DB;
  
          $info = '';
          if ($submission->userid) {
              $user = $DB->get_record('user', array('id' => $submission->userid), '*', MUST_EXIST);
              $name = fullname($user);
          } else {
              $group = $this->get_submission_group($submission->userid);
              if ($group) {
                  $name = $group->name;
              } else {
                  $name = get_string('defaultteam', 'assign');
              }
          }
          $status = get_string('submissionstatus_' . $submission->status, 'assign');
          $params = array('id'=>$submission->userid, 'fullname'=>$name, 'status'=>$status);
          $info .= get_string('submissionlog', 'assign', $params) . ' <br>';
  
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible()) {
                  $info .= '<br>' . $plugin->format_for_log($submission);
              }
          }
  
          return $info;
      }
code_tokens: public function format_submission_for_log ( stdClass $ submission ) { global $ DB ; $ info = '' ; if ( $ submission -> userid ) { $ user = $ DB -> get_record ( 'user' , array ( 'id' => $ submission -> userid ) , '*' , MUST_EXIST ) ; $ name = fullname ( $ user ) ; } else { $ group = $ this -> get_submission_group ( $ submission -> userid ) ; if ( $ group ) { $ name = $ group -> name ; } else { $ name = get_string ( 'defaultteam' , 'assign' ) ; } } $ status = get_string ( 'submissionstatus_' . $ submission -> status , 'assign' ) ; $ params = array ( 'id' => $ submission -> userid , 'fullname' => $ name , 'status' => $ status ) ; $ info .= get_string ( 'submissionlog' , 'assign' , $ params ) . ' <br>' ; foreach ( $ this -> submissionplugins as $ plugin ) { if ( $ plugin -> is_enabled ( ) && $ plugin -> is_visible ( ) ) { $ info .= '<br>' . $ plugin -> format_for_log ( $ submission ) ; } } return $ info ; }
docstring: Take a submission object and print a short summary for the log file.
  The size limit for the log file is 255 characters, so be careful not
  to include too much information.
  
  @deprecated since 2.7
  
  @param stdClass $submission
  @return string
docstring_tokens: Take a submission object and print a short summary for the log file . The size limit for the log file is 255 characters so be careful not to include too much information .