original_string: public function export_custom_file(array $subcontext, $filename, $filecontent) : content_writer {
          $filename = clean_param($filename, PARAM_FILE);
          $path = $this->get_path($subcontext, $filename);
          $this->write_data($path, $filecontent);
  
          return $this;
      }
code: public function export_custom_file(array $subcontext, $filename, $filecontent) : content_writer {
          $filename = clean_param($filename, PARAM_FILE);
          $path = $this->get_path($subcontext, $filename);
          $this->write_data($path, $filecontent);
  
          return $this;
      }
code_tokens: public function export_custom_file ( array $ subcontext , $ filename , $ filecontent ) : content_writer { $ filename = clean_param ( $ filename , PARAM_FILE ) ; $ path = $ this -> get_path ( $ subcontext , $ filename ) ; $ this -> write_data ( $ path , $ filecontent ) ; return $ this ; }
docstring: Export a piece of data in a custom format.
  
  @param   array           $subcontext The location within the current context that this data belongs.
  @param   string          $filename   The name of the file to be exported.
  @param   string          $filecontent    The content to be exported.
docstring_tokens: Export a piece of data in a custom format .