public function remove(stdClass $submission) {
        global $DB;

        $submissionid = $submission ? $submission->id : 0;
        if ($submissionid) {
            $DB->delete_records('assignsubmission_onlinetext', array('submission' => $submissionid));
        }
        return true;
    }
public function remove(stdClass $submission) {
        global $DB;

        $submissionid = $submission ? $submission->id : 0;
        if ($submissionid) {
            $DB->delete_records('assignsubmission_onlinetext', array('submission' => $submissionid));
        }
        return true;
    }
public function remove ( stdClass $ submission ) { global $ DB ; $ submissionid = $ submission ? $ submission -> id : 0 ; if ( $ submissionid ) { $ DB -> delete_records ( 'assignsubmission_onlinetext' , array ( 'submission' => $ submissionid ) ) ; } return true ; }
Remove a submission.

@param stdClass $submission The submission
@return boolean
Remove a submission .