1 |
efrain |
1 |
This files describes API changes in /mod/workshop - activity modules,
|
|
|
2 |
information provided here is intended especially for developers.
|
|
|
3 |
|
|
|
4 |
=== 4.2 ===
|
|
|
5 |
|
|
|
6 |
* New function render_action_buttons(): Move render the action buttons from view.php to renderer.php.
|
|
|
7 |
* New function view_submissions_report(): Render the submissions report.
|
|
|
8 |
* New function view_page(): The function handles displaying sections of the page.
|
|
|
9 |
|
|
|
10 |
=== 4.0 ===
|
|
|
11 |
|
|
|
12 |
* \mod_workshop\event\phase_automatically_switched event is triggered when the phase is automatically switched within
|
|
|
13 |
the cron task.
|
|
|
14 |
* A new method \workshopallocation_scheduled::phase_automatically_switched added to handle the
|
|
|
15 |
\mod_workshop\event\phase_automatically_switched event.
|
|
|
16 |
* A new boolean parameter, $checksubmissionphase, has been added to the workshop_scheduled_allocator::execute() method
|
|
|
17 |
in order to allow (or not) the allocation of submissions to be done in phases other than the SUBMISSION_PHASE.
|
|
|
18 |
|
|
|
19 |
=== 3.8 ===
|
|
|
20 |
|
|
|
21 |
* The following functions have been finally deprecated and can not be used anymore:
|
|
|
22 |
* workshop_scale_used()
|
|
|
23 |
|
|
|
24 |
=== 3.7 ===
|
|
|
25 |
|
|
|
26 |
* workshop_cron() has been removed. Sub-plugins should now implement scheduled tasks.
|
|
|
27 |
|
|
|
28 |
=== 3.6 ===
|
|
|
29 |
|
|
|
30 |
* The external function get_workshops_by_courses now returns 2 additional fields: submissiontypetext and
|
|
|
31 |
submissiontypefile, indicating which submission types are available and required.
|
|
|
32 |
|
|
|
33 |
=== 3.4 ===
|
|
|
34 |
|
|
|
35 |
* workshop_strategy::get_dimensions_info now returns also the scale items (if scales are being used).
|
|
|
36 |
|
|
|
37 |
=== 3.3.2 ===
|
|
|
38 |
|
|
|
39 |
* workshop_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
|
|
|
40 |
now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
|
|
|
41 |
objects instead of the ids to save DB calls.
|
|
|
42 |
|
|
|
43 |
=== 2.7 ===
|
|
|
44 |
|
|
|
45 |
* The method workshop::log() has been deprecated in the workshop module. Please use the event classes instead
|
|
|
46 |
(mod/workshop/classes/event).
|