Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
admin

Functions

 admin_page_type_list ($pagetype, $parentcontext, $currentcontext)
 Return a list of page types.
 
 core_admin_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 File serving.
 

Detailed Description

Function Documentation

◆ admin_page_type_list()

admin_page_type_list ( $pagetype,
$parentcontext,
$currentcontext )

Return a list of page types.

Parameters
string$pagetypecurrent page type
stdClass$parentcontextBlock's parent context
stdClass$currentcontextCurrent context of block

◆ core_admin_pluginfile()

core_admin_pluginfile ( $course,
$cm,
$context,
$filearea,
$args,
$forcedownload,
array $options = array() )

File serving.

Parameters
stdClass$courseThe course object.
stdClass$cmThe cm object.
context$contextThe context object.
string$fileareaThe file area.
array$argsList of arguments.
bool$forcedownloadWhether or not to force the download of the file.
array$optionsArray of options.
Return values
void|false