Commit Graph

19 Commits

Author SHA1 Message Date
sam marshall 540f89d7d4 MDL-33212 Course page: Eye icon should override other conditions 2012-05-28 16:17:39 +01:00
Eloy Lafuente (stronk7) 94dc3c7d1e MDL-24419 (5): Coding style cleanup 2012-05-17 00:51:50 +02:00
sam marshall ce4dfd2703 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).
2012-05-14 11:19:25 +01:00
Eloy Lafuente (stronk7) 47ee3c5569 MDL-30976 whitespace fixes 2012-03-07 02:19:59 +01:00
Ankit Kumar Agarwal 9ccadad391 MDL-30976 Docs Documenting Conditional APIs 2012-03-02 10:22:46 +08:00
sam marshall 6282381d05 MDL-27242 Conditional availability dates should support time as well as day
Change also adds minor feature to date-time selector so you can specify the time it uses as default when the value is 0 (disabled).

Credit: This feature was developed collaboratively by Charles Fulton, Neill Magill, and me.
2011-10-13 10:23:23 +01:00
Charles Fulton fdef13e692 MDL-26507: improper use of assignment operater causes grade checks to fail 2011-02-21 12:54:37 +00:00
Petr Skoda 516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Sam Marshall 72d021a927 Unit tests MDL-24976 Fixed conditionlib unit test (also added thing to ensure that debug warning in conditionlib is shown in unit test if applicable) 2010-11-02 15:04:21 +00:00
Petr Skoda 78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Sam Marshall bfeaa89501 MDL-20852: Condition system - problems if you delete a module that another one had a condition on 2009-11-16 15:14:47 +00:00
Petr Skoda 117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
samhemelryk 3564771d6b lib MDL-19236 added phpdocs and copyrights 2009-05-22 08:41:00 +00:00
sam_marshall b8104e996f MDL-19202 fixed stupid bug in conditionlib, moved a static to a global 2009-05-15 13:31:41 +00:00
sam_marshall e7c6bf0eab MDL-18297: Changed date conditions so that the text and behaviour is more natural. 2009-04-17 16:06:29 +00:00
sam_marshall 373fb9ddbe conditionlib whitespace / coding style fixes 2009-04-17 14:32:50 +00:00
sam_marshall 7556422816 MDL-18272, MDL-18271: Conditional availability - grade condition to use percentages not raw grades; use wording rather than >= symbol in form because (apparently) teachers are functionally innumerate. ;) 2009-02-18 17:50:13 +00:00
sam_marshall a343b13f59 MDL-17915: Conditional activities do not update when you change manual activity completion using an AJAX tickbox- 2009-01-15 17:09:02 +00:00
sam_marshall 82bd6a5ea9 MDL-15499: Conditional availability of activities 2008-12-17 16:37:35 +00:00