original_string: public function save(stdClass $grade, stdClass $data) {
          $fileoptions = $this->get_file_options();
  
          // The element name may have been for a different user.
          foreach ($data as $key => $value) {
              if (strpos($key, 'files_') === 0 && strpos($key, '_filemanager')) {
                  $elementname = substr($key, 0, strpos($key, '_filemanager'));
              }
          }
  
          $data = file_postupdate_standard_filemanager($data,
                                                       $elementname,
                                                       $fileoptions,
                                                       $this->assignment->get_context(),
                                                       'assignfeedback_file',
                                                       ASSIGNFEEDBACK_FILE_FILEAREA,
                                                       $grade->id);
  
          return $this->update_file_count($grade);
      }
code: public function save(stdClass $grade, stdClass $data) {
          $fileoptions = $this->get_file_options();
  
          // The element name may have been for a different user.
          foreach ($data as $key => $value) {
              if (strpos($key, 'files_') === 0 && strpos($key, '_filemanager')) {
                  $elementname = substr($key, 0, strpos($key, '_filemanager'));
              }
          }
  
          $data = file_postupdate_standard_filemanager($data,
                                                       $elementname,
                                                       $fileoptions,
                                                       $this->assignment->get_context(),
                                                       'assignfeedback_file',
                                                       ASSIGNFEEDBACK_FILE_FILEAREA,
                                                       $grade->id);
  
          return $this->update_file_count($grade);
      }
code_tokens: public function save ( stdClass $ grade , stdClass $ data ) { $ fileoptions = $ this -> get_file_options ( ) ; // The element name may have been for a different user. foreach ( $ data as $ key => $ value ) { if ( strpos ( $ key , 'files_' ) === 0 && strpos ( $ key , '_filemanager' ) ) { $ elementname = substr ( $ key , 0 , strpos ( $ key , '_filemanager' ) ) ; } } $ data = file_postupdate_standard_filemanager ( $ data , $ elementname , $ fileoptions , $ this -> assignment -> get_context ( ) , 'assignfeedback_file' , ASSIGNFEEDBACK_FILE_FILEAREA , $ grade -> id ) ; return $ this -> update_file_count ( $ grade ) ; }
docstring: Save the feedback files.
  
  @param stdClass $grade
  @param stdClass $data
  @return bool
docstring_tokens: Save the feedback files .