Note:

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

PublicPrivate

From MoodleDocs

Executive Summary

This page will spec out the features of Public/Private.

Public/Private is a means whereby any resource within moodle can be made private to only members of that course, or public and available to anyone that visits that site (including guests).

A practical use for this feature is making the syllabus public so that potential students can shop around for classes, but the rest of the course material is private and only available to the members of that course.

Database structures

Below are the fields that are added to the already existing table.

course

Field Type Default Info
groupautoassign BIGINT(10) 0 autoincrementing, notnull, Group id to auto-assign members of the course.
grouppublicprivate TINYINT(1) 0 notnull, Whether public/private is enabled for that course.

Overview of module communication

TODO: describe the following:

  1. initial setup
  2. how-it-works
  3. making a resource/activity public
  4. making a resource/activity private