Commit Graph

157 Commits

Author SHA1 Message Date
sam marshall
333e499c4b MDL-34612 Grade condition range validation allows impossible conditions 2012-11-07 10:54:23 +00:00
Ankit Agarwal
9a5e297b4c MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/ 2012-07-24 16:19:01 +08:00
Sam Hemelryk
33e657c7e7 MDL-29538 core_condition: Pre-integration merge cleanup
* Fixed up database installation and upgrade code
* Reverted some whitespace optimisations to minimise conflicts
* Optimised commits made by Mark to reduce complexity and add tracker issue numbers
2012-06-26 15:18:53 +08:00
Mark Nelson
95a9bc0e4a MDL-29538 core_condition: ignore any fields that have none selected 2012-06-26 15:18:53 +08:00
Mark Nelson
a6b538a862 MDL-29538 core_condition: validate whether a field has been declared before for that activity 2012-06-26 15:18:52 +08:00
Mark Nelson
a8f84c287c MDL-29538 core_condition: code cleanup 2012-06-26 15:18:52 +08:00
Mark Nelson
cb4492c200 MDL-29538 core_condition: changed the logic in the code so that it works with the new database structure as well as tidying up parts of the code 2012-06-26 15:18:52 +08:00
Mark Nelson
76af15bb4c MDL-29538 core_condition: initial commit to add support for making things conditional on user profile fields 2012-06-26 15:18:51 +08:00
Frederic Massart
a41b1d96b6 MDL-33775 Course: fix redirect to course/section in paged mode 2012-06-18 15:10:33 +08: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
Petr Skoda
54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
Sam Hemelryk
54a4d23d43 Merge branch 'MDL-30764-master' of git://github.com/sammarshallou/moodle 2011-12-20 14:15:47 +13:00
Sam Hemelryk
f8882018f2 Merge branch 'w51_MDL-30787_m23_coursemodedit' of git://github.com/skodak/moodle 2011-12-20 12:08:23 +13:00
Petr Skoda
af18993548 MDL-30787 fix use of module and section edit capabilities 2011-12-18 13:54:38 +01:00
sam marshall
6d02b26578 MDL-30764 Activity settings: do not disable grouping dropdown if it is already set 2011-12-15 16:43:12 +00:00
Tim Hunt
af4e440888 MDL-30559 conditional availability: missing validation of grade rules. 2011-12-09 18:38:02 +00:00
David Mudrak
01609c9ad9 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
	version.php
2011-10-24 22:13:01 +02:00
David Mudrak
6832a10264 Initial support for the grading management screen
The user is sent to the new grade/grading/manage.php screen when an
advanced grading method is set in the activity mod form or via the
settings block.

The screen is supposed to (1) let the user change the currently active
grading method, (2) open the editor for the selected method, (3) create
new form from a template (4) display a preview of the form.
2011-10-18 01:05:07 +02: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
David Mudrak
b11f9da65e MDL-29479 New feature FEATURE_ADVANCED_GRADING
Plugins will use this feature to claim their support for the new
advanced grading methods machinery.
2011-09-29 00:09:59 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Tim Hunt
71c4154a98 MDL-26567 no grade category option on the quiz settings form.
Also, refine the standard_grading_coursemodule_elements method to add a
help string.

AMOS BEGIN
 CPY [gradecategory,grades],[gradecategoryonmodform,grades]
AMOS END
2011-09-20 11:10:34 +01:00
sam marshall
8c40662e22 MDL-27001 'Show description' feature part 1: infrastructure that allows modules to support feature
The 'Show description' feature is about optionally including module description on the course page. This change include the necessary infrastructure - new database field, new FEATURE constant, changes to forms to display it, new language strings for it, backup and restore, and old course conversion. (I found the places to change by searching for an existing field in course_modules).

Documentation for the field is included in install.xml and in modinfolib.
2011-09-06 11:03:00 +01:00
sam marshall
3fbe0e8a0f MDL-27627 Headers in moodleform_mod should have IDs 2011-05-27 13:40:02 +01:00
Eloy Lafuente (stronk7)
b47dcdf0de MDL-27471 minor fixups 2011-05-23 12:42:15 +02:00
Sam Hemelryk
2b04c41c58 MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
* Added the component and ratingarea fields and implemented it throughout
  the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
  API.
2011-05-23 12:35:39 +02:00
Petr Skoda
516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Sam Marshall
91d0bb0a1f Activity completion MDL-24746 If you turn on autocompletion for an activity after users have already done things that should complete it, it didn't mark them complete 2010-11-08 11:51:19 +00:00
Andrew Davis
f1c5b522fc condition MDL-24180 added a help item to the conditional activity availability config UI 2010-11-02 08:35:33 +00:00
Petr Skoda
fbaea88faa MDL-24321 switching to stdClass in /c*/ 2010-09-21 08:13:11 +00:00
Petr Skoda
7e85563de5 fixed a few spelling errors 2010-09-17 12:16:27 +00:00
Petr Skoda
36f3228c3e MDL-24101 hide groupmembersonly options when feature disabled 2010-09-06 18:10:11 +00:00
Andrew Davis
f9cd798c7e rating MDL-23908 improved rating role tips 2010-08-31 07:59:32 +00:00
Andrew Davis
750925e2e4 rating MDL-23908 made some progress resolving the get roles with capability problem 2010-08-26 02:58:55 +00:00
Andrew Davis
52eac7506c rating MDL-23908 reformated the rating role hints 2010-08-25 09:00:56 +00:00
Andrew Davis
d90dd97390 rating MDL-23908 moved around some strings 2010-08-25 07:42:07 +00:00
Andrew Davis
bbf277335e rating MDL-23908 altered the way the role hints for ratings work 2010-08-25 01:41:15 +00:00
Andrew Davis
0d54a3985b rating MDL-23908 added info to module config to help the user with rating permissions 2010-08-24 13:06:49 +00:00
Andrew Davis
16306628bd gradebook MDL-19133 shifted around some code to move module grade settings into common code 2010-08-13 08:29:13 +00:00
Andrew Davis
60d5a2e405 gradebook MDL-19133 renamed the function that provides grading related activity config fields 2010-08-12 06:20:06 +00:00
Andrew Davis
55d95d90f9 rating MDL-23328 made date restriction of ratings work correctly 2010-07-16 06:30:30 +00:00
David Mudrak
cce2762c0c MDL-14679 Fixed regression in phpdoc block caused by previous mass search and replace
For a second, I panicked reading that mod/{modname}/mod_form.php are now
deprecated in favour of mod/{modname}.mod_form.php Fortunately, git-blame
and git-show helped me to realize what happened here in 7cac0c4b
2010-06-01 16:51:08 +00:00
David Mudrak
036880940e MDL-21695 Strings and helps cleanup 2010-05-06 17:05:43 +00:00
David Mudrak
af455aa011 MDL-21695 Completion on grade help string + placeholder fix
AMOS BEGIN
 HLP completion/completionusegrade.html,[completionusegrade_help,core_completion]
AMOS END
2010-05-05 00:10:26 +00:00
David Mudrak
c8dcb793c4 MDL-21695 Yet some completion help strings fix
AMOS BEGIN
 HLP completion/completionicons.html,[completionicons_help,core_completion]
AMOS END
2010-05-05 00:03:13 +00:00
David Mudrak
13c76792a2 MDL-21695 Removing some help strings as suggested by Helen 2010-05-04 23:33:45 +00:00
David Mudrak
ddd9f9266b MDL-21695 Help strings for the activity module common settings
AMOS BEGIN
 HLP cmidnumber.html,[idnumbermod_help,core]
 HLP completion/completionexpected.html,[completionexpected_help,core_completion]
 HLP completion/completionlocked.html,[completionlocked_help,core_completion]
 HLP condition/completioncondition.html,[completioncondition_help,core_condition]
 HLP condition/conditiondates.html,[availablefrom_help,core_condition]
 HLP condition/conditiondates.html,[availableuntil_help,core_condition]
 HLP condition/showavailability.html,[showavailability_help,core_condition]
 HLP grouping.html,[grouping_help,core_group]
 HLP groupmembersonly.html,[groupmembersonly_help,core_group]
 HLP groupmode.html,[groupmode_help,core_group]
AMOS END
2010-05-03 20:43:55 +00:00
David Mudrak
530d2d72e4 MDL-21695 Forum module now uses new help strings
AMOS BEGIN
 HLP forum/assessaggregate.html,[aggregatetype_help,mod_forum]
 HLP forum/attachment2.html,[attachment_help,mod_forum]
 HLP forum/displayperiod.html,[displaystart_help,mod_forum]
 HLP forum/displayperiod.html,[displayend_help,mod_forum]
 HLP forum/forumtype.html,[forumtype_help,mod_forum]
 HLP forum/forumtypenews.html,[namenews_help,mod_forum]
 HLP forum/manageposts.html,[blockperiod_help,mod_forum]
 HLP forum/manageposts.html,[blockafter_help,mod_forum]
 HLP forum/manageposts.html,[warnafter_help,mod_forum]
 HLP forum/maxattachments.html,[maxattachments_help,mod_forum]
 HLP forum/maxattachmentsize.html,[maxattachmentsize_help,mod_forum]
 HLP forum/mods.html,[modulename_help,mod_forum]
 HLP forum/ratings.html,[separatedandconnectedinfo,core]
 HLP forum/rssarticles.html,[rssarticles_help,mod_forum]
 HLP forum/rsstype.html,[rsstype_help,mod_forum]
 HLP forum/subscription2.html,[subscriptionmode_help,mod_forum]
 HLP forum/subscription.html,[subscription_help,mod_forum]
 HLP forum/trackingtype.html,[trackingtype_help,mod_forum]
AMOS END
2010-04-30 16:35:55 +00:00
Martin Dougiamas
2be4d090c0 course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it.  Aaron already has a number of improvements to add to it.
2010-04-30 03:06:22 +00:00
David Mudrak
59f19480a8 MDL-21695 Missing string producing debugging message, to be shortened probably 2010-04-30 01:01:35 +00:00