original_string: public function get_editor_format($name, $submissionid) {
          if ($name == 'onlinetext') {
              $onlinetextsubmission = $this->get_onlinetext_submission($submissionid);
              if ($onlinetextsubmission) {
                  return $onlinetextsubmission->onlineformat;
              }
          }
  
          return 0;
      }
code: public function get_editor_format($name, $submissionid) {
          if ($name == 'onlinetext') {
              $onlinetextsubmission = $this->get_onlinetext_submission($submissionid);
              if ($onlinetextsubmission) {
                  return $onlinetextsubmission->onlineformat;
              }
          }
  
          return 0;
      }
code_tokens: public function get_editor_format ( $ name , $ submissionid ) { if ( $ name == 'onlinetext' ) { $ onlinetextsubmission = $ this -> get_onlinetext_submission ( $ submissionid ) ; if ( $ onlinetextsubmission ) { return $ onlinetextsubmission -> onlineformat ; } } return 0 ; }
docstring: Get the content format for the editor
  
  @param string $name
  @param int $submissionid
  @return int
docstring_tokens: Get the content format for the editor