public function prepare_submission(stdClass $record, $showauthor = false) {

        $submission         = new workshop_submission($this, $record, $showauthor);
        $submission->url    = $this->submission_url($record->id);

        return $submission;
    }
public function prepare_submission(stdClass $record, $showauthor = false) {

        $submission         = new workshop_submission($this, $record, $showauthor);
        $submission->url    = $this->submission_url($record->id);

        return $submission;
    }
public function prepare_submission ( stdClass $ record , $ showauthor = false ) { $ submission = new workshop_submission ( $ this , $ record , $ showauthor ) ; $ submission -> url = $ this -> submission_url ( $ record -> id ) ; return $ submission ; }
Prepares renderable submission component

@param stdClass $record required by {@see workshop_submission}
@param bool $showauthor show the author-related information
@return workshop_submission
Prepares renderable submission component