Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Callback and library methods for core communication.

Copyright: 2023 Safat Shahin <safat.shahin@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 61 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function


Functions that are not part of a class:

core_communication_pluginfile($course,$cm,$context,$filearea,$args,$forcedownload,array $options = [])   X-Ref
Serve the files from the core_communication file areas.

param: stdClass $course the course object
param: stdClass $cm the course module object
param: context $context the context
param: string $filearea the name of the file area
param: array $args extra arguments (itemid, path)
param: bool $forcedownload whether force download
param: array $options additional options affecting the file serving