Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core\content Class Reference

The Content API allows all parts of Moodle to determine details about content within a component, or plugintype. More...

Static Public Member Functions

static can_export_context (context $currentcontext, stdClass $user)
 Check whether the specified user can export content for the specified context.
 
static export_context (context $requestedcontext, stdClass $user, zipwriter $archive)
 Export content for the specified context.
 

Detailed Description

The Content API allows all parts of Moodle to determine details about content within a component, or plugintype.

This includes the description of files.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ can_export_context()

static core\content::can_export_context ( context $currentcontext,
stdClass $user )
static

Check whether the specified user can export content for the specified context.

Parameters
context$currentcontext
stdClass$user
Return values
bool

◆ export_context()

static core\content::export_context ( context $requestedcontext,
stdClass $user,
zipwriter $archive )
static

Export content for the specified context.

Parameters
context$requestedcontextThe context to be exported
stdClass$userThe user being exported
zipwriter$archiveThe Zip Archive to export to

The documentation for this class was generated from the following file: