Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
Directories | Files | Functions
admin

Directories

directory classes
  
 
directory presets
  
 
directory tests
  
 
directory tool
  
 

Files

file  lib.php
 This file contains functions used by the admin pages.
 

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