364 Commits

Author SHA1 Message Date
Tim Hunt
cb323d0258 quiz recent activity: MDL-22410 permission check was wrong. 2010-05-10 22:36:40 +00:00
Tim Hunt
7bc488dc3d quiz settings MDL-21780 more work on group and user setting overrides
The group setting tab is now disabled if there are no groups in the course.
The code also now respects groupings.
Thanks to Matt Petro for this patch.
2010-05-10 22:15:17 +00:00
Tim Hunt
2b38499d60 MDL-20860 quiz grades that had already been formatted for output were being used in database queries.
Which really does not work in locales that use , as a decimal point.

Also, this commit fixes one performance problem in index.php with DB queries in a loop.
2010-05-07 00:08:16 +00:00
Tim Hunt
ac250ad54a quiz: NOBUG fix silly typo. 2010-05-01 08:08:50 +00:00
Tim Hunt
8d2971888f quiz recent activity: MDL-20586 was showing scores even if quiz settings said not to.
Fix started with a patch from Yolanda Ordoñez Rufat but with significant reworking by me.
2010-04-29 10:46:39 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Petr Skoda
846e4e177e MDL-16438 separating subplugin detection from the plugin_supports code because it was running into infinite loops in get_string() which is often incorrectly used in lib.php files, but the get_string() itself needs to know about subplugins 2010-04-04 19:58:03 +00:00
Sam Hemelryk
0b29477be9 navigation MDL-21565 Update this xxx is now automatically added to the nav for all modules by default and is renamed to settings as that is what was being used in the tabs system presently anyway.
The following minor changes were also made:
* Added roles links to the navigation automatically
* Handling of block context for settings navigation
* Tidied up init code for settings navigation
2010-03-22 03:04:00 +00:00
Tim Hunt
990650f94c quiz: MDL-16478 Allow different open/close dates, etc. for individual students or groups.
This was implemented by Matt Petro of the University of Wisconsin - Madison Engineering
School and Math Department. Many thanks. Reviewed by and committed by Tim Hunt.

This adds a new Overrides tab to the UI, with sub-tabs Group overrides and User overrides.
Each of those lists all the overrides that currently exist, and lets you manage them and
create more.

When a quiz is being attempted, the override that applies to the current user is combined
with the current quiz settings loaded from the quiz table (normally called $quiz).
If there are both user and group overrides, then just the specific user override is used (more specific).
If the user is in several groups, then the overrides are combined to give the most permissive set of options.

There is one new database table quiz_overrides, to store the overrides.
2010-03-08 16:01:38 +00:00
Petr Skoda
f9fc1461ba MDL-21590 fixed recent regression in nav icons - now using new pix_icon instead of urls, have to rework extra icon handling in resources though 2010-02-14 09:29:44 +00:00
Sam Hemelryk
1a14a14bc6 mod-quiz MDL-15050 Fixed regression missing global OUTPUT 2010-01-28 07:57:48 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Petr Skoda
812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Sam Hemelryk
56115eea49 navigation MDL-21177 Removed erroneous DB queries from module extension calls 2009-12-24 02:06:05 +00:00
Sam Hemelryk
f81a82477d mod-quiz MDL-19813 converted deprecated calendar event methods 2009-12-23 03:01:36 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Nicolas Connault
1a96363a9d MDL-15050 Grades entered/updated through grader report now get correctly displayed in course user activity reports (commenting on last commit). Merged from MOODLE_19_STABLE 2009-10-27 12:37:15 +00:00
samhemelryk
55f599f00e mod-quiz MDL-20276 Created callback methods to expand navigation and settings blocks 2009-09-16 05:15:22 +00:00
nicolasconnault
39e3701904 MDL-19813 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:45:47 +00:00
nicolasconnault
3b1d5cc46a MDL-19813 Converted print_box* to $OUTPUT->box* 2009-08-10 05:00:41 +00:00
tjhunt
64d7949245 quiz: add tracker id to TODO. 2009-07-17 07:06:53 +00:00
tjhunt
e63f88c9a6 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url
and $CFG->modpixpath to $OUTPUT->mod_icon_url
2009-07-02 12:07:58 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
samhemelryk
8cc8611142 mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 03:51:39 +00:00
tjhunt
6bf44482c6 pagelib: MDL-12212 eliminate quiz_page 2009-05-06 09:24:45 +00:00
skodak
0cd1affc58 MDL-18910 full support for module intro editor with embedded images 2009-04-22 04:57:34 +00:00
skodak
dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
skodak
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
tjhunt
72b9b78682 quiz: MDL-18637 fix 1.9-style DB code merged to HEAD by mistake. 2009-03-24 04:15:49 +00:00
tjhunt
c159da4ce5 Fix typo. 2009-03-23 03:57:45 +00:00
tjhunt
e0b7cfcb31 quiz settings: MDL-18583 When a quiz has no grade, make it clear that you can only enter one lot of overall feedback.
When the maximum grade for the quiz is 0, we disable all the overall feedback form controls except for the first, and display an explanitory message.
2009-03-18 07:33:56 +00:00
tjhunt
5ecfab5148 quiz outline report: MDL-18285 Show regrade date, not last attempt date.
I also took the opportunity to clean up the code a bit.
2009-03-18 05:16:49 +00:00
tjhunt
eeab18f0b3 quiz settings: MDL-17333 Resolve the interrelations between shufflequestions and questionsperpage.
* change the wording of the settings.
* add a repaginate now checkbox (disabled if shuffle is on).
* JavaScript to automatically check the checkbox when qpp changes.
* (remove some irrelevant return value checks now we use exceptions.)
2009-03-17 07:08:33 +00:00
tjhunt
84e628a027 quiz settings: MDL-18485 Improve quiz settings form
* Reorder form fields to group things more logically.
** and on the corresponding admin page too.

* Set some options to be 'Advanced' by default:
** Apply penalties.
** Each attempt builds on the last.
** Decimal places for question grades.
** The five 'Extra restrictions on attempts' settings. (password, etc.)
* Admins can still change this to suit their institiution at Administration > Plugins > Activity modules > Quiz.
* These new defaults are applied if the admin had not previously set any fields to be advanced.

* Disable some filds when they are not applicable:
** Grading method, if num attempts = 1
** Penaly scheme, if adaptive mode = no
** Each attempt builds of last, if num attempts = 1
** Review after quiz closed options, if no close date.
** Delay between 1st and 2nd attempts, if num attempts = 1
** Delay between later attempts, if num attempts < 3

* Convert quiz.timelimit to be in seconds, for consistency, and ready for the new duration field type (MDL 18500).
** Including ensuring that backup and restore is backwards compatible.

* MDL-5537 New setting, questiondecimalpoints, so, for example, you can show the quiz grade as an integer, but have fractional question grades.
** There is a 'Same as overall decimal points' option, which is the default.

* Improve some field labels.

* Make corresponding changes in the help files.
2009-03-10 08:39:51 +00:00
tjhunt
53004e480f quiz lib: MDL-17579 should call delete_attempt from questionlib.php rather than trying to do the job itself. 2009-03-04 08:35:05 +00:00
tjhunt
96c7d771df quiz: MDL-14926 New capability mod/quiz:reviewmyattempts, separate from mod/quiz:attempt. Merged from MOODLE_19_STABLE. 2009-01-14 07:08:02 +00:00
skodak
9c82ff2acd MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for devs converting contrib modules 2009-01-12 21:13:28 +00:00
skodak
1045a0074c MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead 2009-01-12 16:52:53 +00:00
tjhunt
19f5b2dbee accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page. 2009-01-09 06:16:36 +00:00
tjhunt
acf149ad15 quiz: MDL-17578 Review quiz_get_view_actions and quiz_get_post_actions. 2008-12-14 13:32:45 +00:00
tjhunt
be0ba083a0 performance: MDL-17577 only include lib/questionlib.php from the few parts of mod/quiz/lib.php that actually need it. Merged from MOODLE_19_STABLE. 2008-12-10 02:11:42 +00:00
jamiesensei
bbf4f440ee MDL-15326 "allow for per report capabilities to replace mod/quiz:viewreports" 2008-11-25 12:11:27 +00:00
tjhunt
739b07112e MDL-16625 Detection of whether a quiz has grades was broken in HEAD.
1. Fix this by factoring out a quiz_has_grades function.
2. Fix the quiz unit tests.
3. Fix quiz_has_feedback to return false for ungraded quizzes.
4. Fix use of get_records to do record_exists in quiz reports.
2008-09-23 07:18:15 +00:00
tjhunt
ad4cd8374a Improve comment. 2008-09-11 10:37:50 +00:00
tjhunt
cca6e300e7 Refactor getting question bank capabilties in mod/quiz/lib.php - don't hard code them.
Also, functions for getting a URL for editing questions in a particular context, ready for MDL-16409.
2008-09-10 05:28:25 +00:00
jerome
40f6f97f76 MDL-16307: move quiz_get_best_grade() in lib.php, and fix the DB request of quiz_user_complete() 2008-09-02 10:06:17 +00:00
tjhunt
62e76c6766 MDL-16263 A way for students to flag/bookmark, particular questions during a quiz attempt for later review.
This is an initial implementation that is now at a working state, but with a few things left to do. It seemed like a good idea to commit it before leaving work on Friday night.
2008-08-29 10:08:27 +00:00