Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Functions | |
block_html_get_path_from_pluginfile (string $filearea, array $args) | |
Given an array with a file path, it returns the itemid and the filepath for the defined filearea. | |
block_html_global_db_replace ($search, $replace) | |
Perform global search replace such as when migrating site to new URL. | |
block_html_pluginfile ($course, $birecord_or_cm, $context, $filearea, $args, $forcedownload, array $options=array()) | |
Form for editing HTML block instances. | |
block_html_get_path_from_pluginfile | ( | string | $filearea, |
array | $args ) |
Given an array with a file path, it returns the itemid and the filepath for the defined filearea.
string | $filearea | The filearea. |
array | $args | The path (the part after the filearea and before the filename). |
array | The itemid and the filepath inside the $args path, for the defined filearea. |
block_html_global_db_replace | ( | $search, | |
$replace ) |
Perform global search replace such as when migrating site to new URL.
$search | |
$replace |
void |
block_html_pluginfile | ( | $course, | |
$birecord_or_cm, | |||
$context, | |||
$filearea, | |||
$args, | |||
$forcedownload, | |||
array | $options = array() ) |
Form for editing HTML block instances.
stdClass | $course | course object |
stdClass | $birecord_or_cm | block instance record |
context | $context | context object |
string | $filearea | file area |
array | $args | extra arguments |
bool | $forcedownload | whether or not force download |
array | $options | additional options affecting the file serving |
bool |