MDL-24419 (4): Add conditional availability support to sections; section cache
authorsam marshall <s.marshall@open.ac.uk>
Mon, 2 Apr 2012 11:16:13 +0000 (12:16 +0100)
committersam marshall <s.marshall@open.ac.uk>
Mon, 14 May 2012 10:19:25 +0000 (11:19 +0100)
commitce4dfd2703fcd4eb0c80853c631acd2f67299f01
treeb9e3dc25a7c162c2e3c44a650c46bd1b61e3b510
parent637da99edbd7258fae20374ed8c890a167f40d30
MDL-24419 (4): Add conditional availability support to sections; section cache

Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
20 files changed:
backup/moodle2/backup_stepslib.php
backup/moodle2/restore_stepslib.php
course/edit.php
course/editsection.php
course/editsection_form.php
course/format/renderer.php
course/lib.php
course/moodleform_mod.php
course/view.php
index.php
lang/en/condition.php
lang/en/group.php
lib/conditionlib.php
lib/db/install.xml
lib/db/upgrade.php
lib/modinfolib.php
lib/moodlelib.php
lib/navigationlib.php
lib/tests/conditionlib_test.php
version.php