Book Image

Moodle 3.x Developer's Guide

By : Ian Wild, Jaswant Tak
Book Image

Moodle 3.x Developer's Guide

By: Ian Wild, Jaswant Tak

Overview of this book

The new and revamped Moodle is the top choice for developers to create cutting edge e-learning apps that cater to different user’s segments and are visually appealing as well. This book explains how the Moodle 3.x platform provides a framework that allows developers to create a customized e-learning solution. It begins with an exploration of the different types of plugin.. We then continue with an investigation of creating new courses. You will create a custom plugin that pulls in resources from a third-party repository. Then you’ll learn how users can be assigned to courses and granted the necessary permissions. Furthermore, you will develop a custom user home. At the end of the book, we’ll discuss the Web Services API to fully automate Moodle 3.x in real time.
Table of Contents (19 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface
6
Managing Users - Letting in the Crowds

Summary


In this chapter, we investigated how courses can be enhanced by custom plugins. We developed a course format plugin that revealed sections depending on your GPS location. We also developed a block that displays a QR Code on a course. Finally, we developed a text filter plugin to manipulate on-screen text.

By deconstructing the GPS Format plugin, which displays resources and activities dependant on your location, we learned how to incorporate JavaScript into our plugins, and how to wrap JavaScript in YUI code (YUI is the JavaScript library currently supported by Moodle, although Moodle is transitioning away from YUI to jQuery--see https://docs.moodle.org/dev/YUI).

Courses can be enhanced with the inclusion of blocks, and also in this chapter we learned how to construct a QR Code block, using the third-party QR Code image library employed by the QL Links plugin. By doing so, we learned how to handle files using Moodle's File API--we created files in Moodle's \temp directory, importing...