Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Moodle Mobile 2 (Ionic 1) Developing a plugin tutorial: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 13: Line 13:
* We want to develop a "grades" plugin that will display the current user grades for all the gradable activities in a course you are enroll in.
* We want to develop a "grades" plugin that will display the current user grades for all the gradable activities in a course you are enroll in.


These are some screenshots of the final result:
A screenshot of the desired result:


[[File:MoodleMobileTutorial01.png]]





Revision as of 11:10, 28 January 2013

Introduction

This tutorial describes all the steps needed for developing a plugin for the MoodleMobile app.

In this tutorial we make the following assumptions:

- You have a medium/good skills/understand of Javascript, PHP and Moodle architecture - You know what a Web Service is and how it works in Moodle - The plugin you are going to develop requires a Web Service in your Moodle installation to work

Plugin spec

  • We want to develop a "grades" plugin that will display the current user grades for all the gradable activities in a course you are enroll in.

A screenshot of the desired result:

MoodleMobileTutorial01.png


Steps

Set up your development environment

Clone or fork the official git repository [1] in a local directory.

Set up your development browser, see Moodle_Mobile, I mainly use the Google Chrome browser.

Set up your Moodle installation

Enable debugging, disable caches, etc... the typical settings for developing.

Enable the Web Services and also the protocols you are going to use for testing and developing (REST is mandatory). See Web Services documentation.

Develop the Moodle local/mod/block/... plugin

Test your Web Services using a demo client

Create your custom Service

Set up your MoodleMobile client

Develop the MoodleMobile plugin

Deliver your plugin