original_string: public function process_gradebook_grade_outcome(array $data, array $raw) {
          global $CFG;
  
          // replay the upgrade step 2009110400
          if ($CFG->texteditors !== 'textarea') {
              $data['description']       = text_to_html($data['description'], false, false, true);
              $data['descriptionformat'] = FORMAT_HTML;
          }
  
          // convert course files embedded into the outcome description field
          $this->fileman->itemid = $data['id'];
          $data['description'] = moodle1_converter::migrate_referenced_files($data['description'], $this->fileman);
  
          // write the outcome data
          $this->write_xml('outcome', $data, array('/outcome/id'));
  
          return $data;
      }
code: public function process_gradebook_grade_outcome(array $data, array $raw) {
          global $CFG;
  
          // replay the upgrade step 2009110400
          if ($CFG->texteditors !== 'textarea') {
              $data['description']       = text_to_html($data['description'], false, false, true);
              $data['descriptionformat'] = FORMAT_HTML;
          }
  
          // convert course files embedded into the outcome description field
          $this->fileman->itemid = $data['id'];
          $data['description'] = moodle1_converter::migrate_referenced_files($data['description'], $this->fileman);
  
          // write the outcome data
          $this->write_xml('outcome', $data, array('/outcome/id'));
  
          return $data;
      }
code_tokens: public function process_gradebook_grade_outcome ( array $ data , array $ raw ) { global $ CFG ; // replay the upgrade step 2009110400 if ( $ CFG -> texteditors !== 'textarea' ) { $ data [ 'description' ] = text_to_html ( $ data [ 'description' ] , false , false , true ) ; $ data [ 'descriptionformat' ] = FORMAT_HTML ; } // convert course files embedded into the outcome description field $ this -> fileman -> itemid = $ data [ 'id' ] ; $ data [ 'description' ] = moodle1_converter :: migrate_referenced_files ( $ data [ 'description' ] , $ this -> fileman ) ; // write the outcome data $ this -> write_xml ( 'outcome' , $ data , array ( '/outcome/id' ) ) ; return $ data ; }
docstring: Processes GRADE_OUTCOME tags progressively
docstring_tokens: Processes GRADE_OUTCOME tags progressively