public function get_editor_format($name, $submissionid) {
        if ($name == 'onlinetext') {
            $onlinetextsubmission = $this->get_onlinetext_submission($submissionid);
            if ($onlinetextsubmission) {
                return $onlinetextsubmission->onlineformat;
            }
        }

        return 0;
    }
public function get_editor_format($name, $submissionid) {
        if ($name == 'onlinetext') {
            $onlinetextsubmission = $this->get_onlinetext_submission($submissionid);
            if ($onlinetextsubmission) {
                return $onlinetextsubmission->onlineformat;
            }
        }

        return 0;
    }
public function get_editor_format ( $ name , $ submissionid ) { if ( $ name == 'onlinetext' ) { $ onlinetextsubmission = $ this -> get_onlinetext_submission ( $ submissionid ) ; if ( $ onlinetextsubmission ) { return $ onlinetextsubmission -> onlineformat ; } } return 0 ; }
Get the content format for the editor

@param string $name
@param int $submissionid
@return int
Get the content format for the editor