52952 Commits

Author SHA1 Message Date
Tim Hunt
2512341872 MDL-3030 quiz statistics: fix stict syntax problem. 2012-04-27 15:07:42 +01:00
Tim Hunt
e1bf1619e1 MDL-3030 quiz overdue handling: cron to update overdue attempts. 2012-04-27 15:07:41 +01:00
Tim Hunt
be18f589e2 MDL-3030 quiz overdue handling: test state, not timefinish where applicable. 2012-04-27 15:07:40 +01:00
Tim Hunt
3e77b60f36 MDL-3030 quiz overdue handling: ignore responses received much too late. 2012-04-27 15:07:38 +01:00
Tim Hunt
fd0537ce36 MDL-3030 quiz overdue handling: catch the overdue event and send message. 2012-04-27 15:07:37 +01:00
Tim Hunt
a403bce0bd MDL-3030 quiz overdue handling: back-end code for the new transitions 2012-04-27 15:07:36 +01:00
Tim Hunt
34b7d8383d MDL-3030 quiz overdue handling: trigger automatic state transitions.
Here, we catch all the places where a student might be accessing their
own attempts, and make sure any automatic state transitions that
should happen, do happen, before the student sees the attempt.

The places where we need to check this are view.php, startattempt.php
and processattempt.php.

We do not really need to check attempt.php or summary.php, because if
the student is on one of those pages, the JavaScript timer will
auto-submit when time expires, taking them to processattempt.php,
which will do the acutal work.

We intentionally do not trigger state transition when a teacher is
looking at a student's quiz attemp. We will trigger state transitions
on cron, but that is still to do.

Also, the body of the process_... methods still needs to be written.
2012-04-27 15:07:35 +01:00
Tim Hunt
863872e3e7 MDL-3030 quiz overdue handling: show the attempt state in the reports. 2012-04-27 15:07:33 +01:00
Tim Hunt
2cdd2df92d MDL-3030 quiz overdue handling: only finished attempts in stats. 2012-04-27 15:07:32 +01:00
Tim Hunt
c547514a9e MDL-3030 quiz overdue handling: show attempt state in the reports. 2012-04-27 15:07:31 +01:00
Tim Hunt
b39b5d77c3 MDL-3030 quiz overdue handling: show attempt state on the review page. 2012-04-27 15:07:30 +01:00
Tim Hunt
2b2b645842 MDL-3030 quiz overdue handling: display message on the summary page.
This change also includes a clean-up of how we display and initialise the countdown timer.
2012-04-27 15:07:29 +01:00
Tim Hunt
2de9be52aa MDL-3030 quiz overdue handling: show attempt state on the view page 2012-04-27 15:07:27 +01:00
Tim Hunt
fd55f4bf49 MDL-3030 quiz overdue handling: backup and restore new settings. 2012-04-27 15:07:26 +01:00
Tim Hunt
18efef384b MDL-3030 quiz overdue handling: new capability 2012-04-27 15:07:25 +01:00
Tim Hunt
87427d9c7c MDL-3030 quiz overdue handling: new settings on quiz form and admin. 2012-04-27 15:07:23 +01:00
Tim Hunt
84da4788fd MDL-3030 quiz settings: reorganise form before adding new fields. 2012-04-27 15:07:22 +01:00
Tim Hunt
c761b7757d MDL-3030 quiz db: add comments to many colums, and reorder more logically. 2012-04-27 15:07:21 +01:00
Tim Hunt
20b77578d0 MDL-3030 quiz overdue handling: new DB columns. 2012-04-27 15:07:19 +01:00
Ruslan Kabalin
c77582fe42 MDL-32657: course dragdrop: define elements changes within the format
It allows to define M.course.format.swap_sections and
M.course.format.get_section_selector in the course format javascript file, so
that course dragdrop is aware about perculiar layout and changes that need to
be done when sections are swapped.
2012-04-27 15:01:02 +01:00
Petr Skoda
80705c1000 MDL-32628 add user_picture->get_url() tests 2012-04-27 15:03:24 +02:00
David Mudrak
7528e238e0 MDL-32638 workshop_pluginfile() checks for access rights to get the submission files 2012-04-27 14:58:59 +02:00
David Mudrak
92039f1cb4 MDL-32638 fixed capability checks for instructauthors and instructreviewers
The workshop_pluginfile() can't be more restrictive than the code that
actually displays the text with the embedded images. To view both
instructions fields in view.php, the capability to view the workshop is
enough. So the same level of access control is applied here by
require_login() at the top of the function.
2012-04-27 14:56:15 +02:00
David Mudrak
b7a5e3d603 MDL-32638 improved file browser access to submission_content and submission_attachment areas
The user has to have viewallsubmissions capability to be able to see the
submission files in the browser. Additionally, in the separate groups
mode, the user has to have accessallgroups or share at least one group
with the submission author to view their files.
2012-04-27 14:56:14 +02:00
David Mudrak
76966a0058 MDL-32638 fixed workshop file info library comments 2012-04-27 14:56:14 +02:00
Petr Skoda
fa5306878b MDL-32628 fix all deleted users to not have picture flag 2012-04-27 14:44:18 +02:00
David Mudrak
a1df59bea9 MDL-27508 workshop does not use get_users_by_capability() any more
This is a big win, we are now taking enrolment fully into account.
Also, no need to fetch big data from DB just to get their count. Should
have much better performance now.
2012-04-27 14:41:59 +02:00
David Mudrak
74f54102dc MDL-27508 display submission link at the manual allocator page 2012-04-27 14:41:59 +02:00
David Mudrak
25bae250ee MDL-27508 workshop manual allocator supports groups
Pagination support improved, too.
2012-04-27 14:41:59 +02:00
David Mudrak
079219bf07 MDL-27508 introducing workshop::count_participants() 2012-04-27 14:41:59 +02:00
David Mudrak
c90a88bfb7 MDL-27508 improving the docs for workshopallocation_manual_allocations class 2012-04-27 14:41:59 +02:00
David Mudrak
ec1bf0f23d MDL-27508 workshop manual allocator supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak
dda42a19cd MDL-27508 workshop::prepare_grading_report_data() accepts $groupid
Workshop grades reports in all three last phases were fixed to support
the group selection. They layout of the report has been unified to be
consistent across all phases.
2012-04-27 14:41:59 +02:00
David Mudrak
8741ebb0bd MDL-27508 introducing workshop::get_participants() and workshop::is_participant()
Note how the participant is defined: it is a user that (1) can submit or
assess or both and (2) is actively enrolled in the course. This means
that usually admins or managers won't be considered as workshop
participants, for example.
2012-04-27 14:41:59 +02:00
David Mudrak
11a97e66e8 MDL-27508 workshop supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak
5547b0dce1 MDL-27508 introducing mod_workshop_renderer::perpage_selector() 2012-04-27 14:41:58 +02:00
David Mudrak
0d2331cce3 MDL-27508 workshop supports pagination at the submissions list in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak
8a23733753 MDL-27508 common pagination and sorting interface across all phases in view.php 2012-04-27 14:41:58 +02:00
David Mudrak
cd57f558d9 MDL-27508 introducing workshop::count_submissions() and pagination support for get_submissions() 2012-04-27 14:41:58 +02:00
David Mudrak
9326a2aa84 MDL-27508 fixing the description of groups related behaviour of some capabilities 2012-04-27 14:41:58 +02:00
David Mudrak
3f5e99153c MDL-27508 workshop checks separate groups membership when displaying an assessment 2012-04-27 14:41:58 +02:00
David Mudrak
f65bc55fcd MDL-27508 workshop checks separate groups membership when displaying a submission 2012-04-27 14:41:58 +02:00
David Mudrak
a4e848360d MDL-27508 workshop_user_complete() checks group membership in separate groups mode 2012-04-27 14:41:58 +02:00
David Mudrak
1c0c3ef5ee MDL-27508 workshop shows submissions per group in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak
872ed8591e MDL-27508 workshop::get_submissions() now accepts optional $groupid 2012-04-27 14:41:58 +02:00
David Mudrak
9691e2b10e MDL-27508 workshop::get_users_with_capability_sql() supports groupmembersonly
If the method is called with $groupid set to 0 and the workshop is in
the groupmembersonly mode, a recursive call is used to populate the
fragments of SQL code that fetch users from all relevant groups. These
fragments are then concatenated using UNION statement.
2012-04-27 14:41:58 +02:00
David Mudrak
21f58287d7 MDL-27508 workshop: improved getting of potential authors and reviewers
This patch reimplements get_potential_authors() and get_potential_reviewers()
so that get_enrolled_sql() is used instead of get_users_by_capability().
This excludes non-enrolled users (or users with suspended enrolment)
from the list of potential users.

The patch also extends the returned user structure. Objects in the
returned collection are now suitable for user_picture renderer.
2012-04-27 14:41:58 +02:00
Petr Skoda
faa328c385 MDL-32628 fix user_picture performance 2012-04-27 13:56:08 +02:00
Petr Skoda
32962961a8 MDL-32651 increase memory limit to 2G when running phpunit tests
This should help when running tests with coverage reports.
2012-04-27 13:54:38 +02:00
Petr Skoda
fffd3703cf MDL-32640 fix E_STRCIT issue when editing somebody post of other user 2012-04-27 13:53:35 +02:00