June 2017
Beginner to intermediate
368 pages
8h 31m
English
Rather than having to upload individual .OBJ, .MTL, and .PNG files, would it not be easier if we could ZIP up the files we need and upload them in a single file to the wavefront module? We can then have the plugin unzip them automatically. In this section, we learn how.
Firstly, let us create a new file called /locallib.php, within which we can add local library functions (for example, library functions to be used only by the wavefront plugin):

In locallib.php, we add a new function called wavefront_check_for_zips():
/** * Checks for ZIP files to unpack. * * @param context $context * @param cm_info $cm * @param $model ...
Read now
Unlock full access