Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core_files

Topics

 external
 
 
 files
 
 

Directories

directory local
  
 
directory reportbuilder
  
 

Namespaces

namespace  core
  
 
namespace  core_files
 Abstraction of general file archives.
 
namespace  core_files\external
  
 
namespace  core_files\external\delete
 This is the external method for deleting draft files.
 
namespace  core_files\external\get
 Generate a new draft itemid for the current user.
 
namespace  core_files\local\archive_writer
 Interface used by archives that write to files.
 
namespace  core_files\privacy
 Data provider.
 
namespace  core_files\reportbuilder\datasource
  
 
namespace  core_files\reportbuilder\local\entities
  
 
namespace  core_files\task
 A scheduled task to clear up old conversion records.
 

Classes

class  core\content
 The Content API allows all parts of Moodle to determine details about content within a component, or plugintype. More...
 
class  core_files\archive_writer
 Each file archive type must extend this class. More...
 
class  core_files\conversion
 Class representing a conversion currently in progress. More...
 
class  core_files\converter
 Class for converting files between different formats using unoconv. More...
 
interface  core_files\converter_interface
 Class for converting files between different file formats. More...
 
class  core_files\external\delete\draft
 This is the external method for deleting draft files. More...
 
class  core_files\external\get\unused_draft
 Generate a new draft itemid for the current user. More...
 
class  core_files\external\stored_file_exporter
 Class for exporting stored_file data. More...
 
interface  core_files\local\archive_writer\file_writer_interface
 Interface used by archives that write to files. More...
 
interface  core_files\local\archive_writer\stream_writer_interface
 Interface used by archives that write to streams. More...
 
class  core_files\local\archive_writer\zip_writer
 Class used for creating ZIP archives. More...
 
class  core_files\privacy\provider
 Data provider class. More...
 
class  core_files\reportbuilder\datasource\files
 Files datasource. More...
 
class  core_files\reportbuilder\local\entities\file
 File entity. More...
 
class  core_files\task\conversion_cleanup_task
 A scheduled task to clear up old conversion records. More...
 
class  file_archive
 Each file archive type must extend this class. More...
 
class  file_info
 Base class for things in the tree navigated by file_browser. More...
 
class  file_info_area_backup_section
 Implementation of course section backup area. More...
 
class  file_info_area_course_legacy
 Subclass of file_info_stored for files in the course files area. More...
 
class  file_info_area_course_section
 Represents a course category context in the tree navigated by file_browser. More...
 
class  file_info_context_course
 Represents a course context in the tree navigated by file_browser. More...
 
class  file_info_context_coursecat
 Represents a course category context in the tree navigated by file_browser. More...
 
class  file_info_context_module
 Represents a module context in the tree navigated by file_browser. More...
 
class  file_info_context_system
 Represents the system context in the tree navigated by file_browser. More...
 
class  file_info_context_user
 Represents a user context in the tree navigated by file_browser. More...
 
class  file_info_stored
 Represents an actual file or folder - a row in the file table in the tree navigated by file_browser. More...
 
class  file_packer
 Abstract class for archiving of files. More...
 
interface  file_progress
 Simple interface for receiving progress during long-running file operations. More...
 
class  tgz_extractor
 Extracts .tar.gz files (POSIX format). More...
 
interface  tgz_extractor_handler
 Interface for callback from tgz_extractor\extract. More...
 
class  virtual_root_file
 Represents the root directory of an empty file area in the tree navigated by file_browser. More...
 

Functions

 xsendfile ($filepath)
 X-Sendfile support.
 

Variables

global core_files\external\delete::$CFG
 
global core_files\external\get::$CFG
 

Detailed Description

Function Documentation

◆ xsendfile()

xsendfile ( $filepath)

X-Sendfile support.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Serve file using X-Sendfile header, this needs special server module or configuration. Please make sure that all headers are already sent and the all access control checks passed.
Parameters
string$filepath
Return values
boolsuccess