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;
    }
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;
    }
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 ; }
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.
Export a piece of data in a custom format .