Moodle 1.9 Extension Development by Jonathan Moore

By Jonathan Moore

Customise and expand Moodle utilizing its strong plug-in structures

  • Develop your individual blocks, actions, filters, and manage your content material with safe code
  • Thoroughly covers key libraries of Moodle and most sensible practices to exploit them
  • Explore the Moodle architectural strategies, the way it is established, and the way it works
  • Detailed examples and screenshots for simple learning

In aspect

Moodle provides the facility to create and customise feature-rich plug-ins. should you can write Moodle plug-ins, you may make it do exactly approximately whatever. From making the positioning more straightforward to manage, to new gains, to fully altering how it seems; plug-ins are the strategy Moodle bargains to customise and expand its performance.

This ebook will enable you construct all kinds of Moodle plug-ins: admin plug-ins, Blocks, actions, Grading elements, experiences, Fliters that fluctuate the way in which your website works and appears. you are going to advance common Moodle plug-ins akin to actions, Filters, and Blocks by way of growing functioning code so that you can execute on your personal Moodle deploy. Writing modular plug-ins for Moodle can be a wide concentration of this e-book. This e-book will take you within Moodle and supply you being able to enhance code the "Moodle way".

This publication will divulge you to the entire center code features in Moodle, in a innovative, comprehensible method. you are going to study what libraries can be found, what the API calls are, the way it is based and the way it may be elevated past the plug-in approach.

You will start via getting an knowing of the fundamental structure that Moodle makes use of to function in. subsequent you'll construct your first plug-in; a block. you are going to keep it up construction different Moodle plug-ins, researching the "Moodle method" of coding, sooner than plunging deeper into the API and internal libraries. finally, you are going to find out how to combine Moodle with different structures utilizing quite a few tools.

When you've gotten accomplished, you've a high-quality realizing of Moodle programming and information of ways to increase its performance in no matter what means you will have.

A sensible consultant to making feature-rich extensions in your site utilizing Moodle plug-ins

What you are going to research from this e-book

  • Add actions and grading parts to maintain a song of scholars' development automatically
  • Create Moodle Filters to approach and filter out the contents of the database
  • Customize the appear and feel of your Moodle website utilizing robust plug-ins
  • Customize Moodle studies to evaluate the functionality of a scholar easily
  • Allow integration with third-party platforms equivalent to HR and scholar details platforms to entry any information directly
  • Automate notifications for any updates within the courses
  • Customize types to be crammed via scholars utilizing `formlib' library
  • Extend Moodle past its limitations utilizing net providers and discover the positive aspects of SOAP-based and XMM-RPC-based internet services

Approach

The author's adventure as a Moodle developer permits him to mix an easy, descriptive how-to technique with enthusiastic insights into the wealthy power of customizing Moodle in line with your wishes. The chapters steadily increase your abilities and by means of the top of the publication you'll be convinced sufficient to customise Moodle by yourself.

Who this e-book is written for

This booklet is written for technologists who're drawn to increasing Moodle's capabilities via programming, both for his or her personal businesses or to give a contribution to the open resource venture. you need to be accustomed to Moodle's easy applied sciences: personal home page, MySQL ,and HTML/CSS.

Show description

Read or Download Moodle 1.9 Extension Development PDF

Best web design books

Video systems in an IT environment: the basics of networked media and file-based workflows

Audio/Video (AV) platforms and data know-how (IT) have collided. it truly is being leveraged to create compelling networked media and file-based workflows. Video platforms in an IT surroundings has helped hundreds of thousands of pros in broadcast, publish and different media disciplines to appreciate the foremost facets the AV/IT "tapeless” convergence.

Visual Web Developer 2005 Express Edition For Dummies

Visible internet Developer show variation is a inexpensive, entry-level model founded round pre-built initiatives that new builders can simply install and customise for his or her personal websites Explains how you can harness "drag-and-drop" instruments that construct at the acclaim for ASP. web, providing net designers a simple creation to the recent Microsoft visible Studio 2005 Framework indicates amateur net builders step-by-step how one can create robust ASP.

WordPress For Dummies, 7th Edition

It sort of feels as if the area revolves round web pages and blogs nowadays, and with WordPress For Dummies, seventh variation you could subscribe to the thrill! This easy-to-read booklet is jam-packed with the data you must navigate the area of WordPress, and all the content material is up-to-date to maintain you in control with the newest updates.

Aptana RadRails: An IDE for Rails Development

A entire consultant to utilizing RadRails to improve your Ruby on Rails initiatives in a certified and effective demeanour. Aptana RadRails is an built-in improvement surroundings for Ruby on Rails tasks. outfitted on most sensible of the well known Eclipse platform, RadRails offers the entire instruments you must create a complete Rails software from a unmarried interface, permitting you to target the inventive a part of the advance as your IDE looks after the mechanics.

Additional resources for Moodle 1.9 Extension Development

Example text

In a later section, we will also add our own access permissions to Moodle. Testing for built-in capabilities We use two Moodle core functions to test for a capability, in this section of code. First, we call the get_context_instance() function with the site or global context, CONTEXT_SYSTEM. The function get_context_instance() will return a context object to us for the requested context type, in this case the system context. Once the context is loaded, we use the require_capability function to test if the user has the moodle/site:doanything capability (essentially, the ability to do anything and everything on the site).

There are seven built-in roles: administrator, teacher, non-editing teacher, student, course creator, authenticated user, and guest, all of which can be assigned in any one or more of the above contexts. Any number of customized roles can be created through the list of over 200 system capabilities. Each capability can be assigned one of four access levels: Not Set, Allow, Prohibit, and Prevent. Each user can have multiple roles that inherit permissions from all of the context levels applicable to a given access request from the user.

Our block and block management page (shown in the following screenshot) should now look a lot better: [ 33 ] Creating and Modifying Blocks Working with capabilities In Chapter 1, Moodle Architecture, we covered an overview of Moodle's role and permission system. Now we will get a chance to see the system in action. In a later section, we will also add our own access permissions to Moodle. Testing for built-in capabilities We use two Moodle core functions to test for a capability, in this section of code.

Download PDF sample

Rated 4.13 of 5 – based on 3 votes