original_string: public function prepare_submission(stdClass $record, $showauthor = false) {
  
          $submission         = new workshop_submission($this, $record, $showauthor);
          $submission->url    = $this->submission_url($record->id);
  
          return $submission;
      }
code: public function prepare_submission(stdClass $record, $showauthor = false) {
  
          $submission         = new workshop_submission($this, $record, $showauthor);
          $submission->url    = $this->submission_url($record->id);
  
          return $submission;
      }
code_tokens: public function prepare_submission ( stdClass $ record , $ showauthor = false ) { $ submission = new workshop_submission ( $ this , $ record , $ showauthor ) ; $ submission -> url = $ this -> submission_url ( $ record -> id ) ; return $ submission ; }
docstring: Prepares renderable submission component
  
  @param stdClass $record required by {@see workshop_submission}
  @param bool $showauthor show the author-related information
  @return workshop_submission
docstring_tokens: Prepares renderable submission component