Issue Details (XML | Word | Printable)

Key: MDL-9983
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Peter Ritter
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

trigger certain events out of the core to modules

Created: 30/May/07 05:29 PM   Updated: 26/Aug/08 02:02 PM
Return to search
Component/s: Events API
Affects Version/s: 1.9
Fix Version/s: 1.9.2

File Attachments: 1. PDF File core-inserts.pdf (160 kB)

Issue Links:
Dependency
 
Relates

Database: Any
Participants: Martin Dougiamas, Oleg Sychev, Peter Ritter, Petr Skoda, Tim Hunt and Yu Zhang
Security Level: None
QA Assignee: Tim Hunt
Resolved date: 07/Jul/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE

Sub-Tasks  All   Open   
 Sub-Task Progress: 
No sub-tasks match this view.

 Description  « Hide
For keeping an external database of a third-party (learning environment)-software consistent to Moodle's database via an acitivity-module - this module hast to be informed about certain events out of the core. The events and the information we would like to see are:

1.1 update of a user's profile (either by an admin of the user himself)
   information we need: user's name and surname, loginname, encrypted password, id of user-table and the idnumber
   but we suggest to keep all information that have changed or the whole form (perhaps other later modules could use this information, too)
1.2 deleting a user's profile
   information: user-id of the user-table
2.1 update of a course
    information needed: id, category-id, fullname, summary
   but again we suggest to keep everything changed or the whole form
2.2 deleting a course
   information needed: the deleted course (at least it's id)
3.1 update of a category
   information needed: id, name
3.2 deleting a category
   information needed: id of the deleted category and the upper category the courses are switched to (at leased it's id)
4.1 creating an new group in a course
   information needed: id, name, description, course-id, grouping-id (and -name or NULL if no grouping)
   again our suggestion to keep the whole form (if later modules need to have more information than our's)
4.2 updae of a group
   information needed is the same as above (better: the whole form)
4.3 add a user to a group
   information needed: user (at least it's id) and group (at least it's id)
4.4 remove a user from a a group
   information needed is the same as abov
4.5 deleting a group
   information needed: group-id

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
toyomoyo committed 9 files to 'Moodle CVS' - 09/Jul/07 02:43 PM
MDL-9983, adding triggers for certain events, no handler implemented
MODIFY group/Attic/edit.php   Rev. 1.8    (+12 -2 lines)
MODIFY group/lib/Attic/basicgrouplib.php   Rev. 1.17    (+6 -0 lines)
MODIFY course/index.php   Rev. 1.77    (+4 -2 lines)
MODIFY group/assign.php   Rev. 1.10    (+6 -0 lines)
MODIFY course/category.php   Rev. 1.107    (+4 -1 lines)
MODIFY user/editadvanced.php   Rev. 1.17    (+4 -1 lines)
MODIFY course/delete.php   Rev. 1.28    (+4 -1 lines)
MODIFY course/edit.php   Rev. 1.105    (+4 -3 lines)
MODIFY user/edit.php   Rev. 1.161    (+7 -1 lines)
toyomoyo committed 4 files to 'Moodle CVS' - 10/Jul/07 10:33 AM
fix for MDL-9983, trigger certain events out of the core to modules
MODIFY course/category.php   Rev. 1.108    (+3 -4 lines)
MODIFY login/change_password.php   Rev. 1.61    (+7 -1 lines)
MODIFY user/edit.php   Rev. 1.162    (+1 -7 lines)
MODIFY group/Attic/edit.php   Rev. 1.9    (+4 -1 lines)
toyomoyo committed 1 file to 'Moodle CVS' - 11/Jul/07 05:05 PM
MDL-9983, missing upser_updated event
MODIFY user/edit.php   Rev. 1.163    (+2 -2 lines)
Petr Skoda committed 16 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 07/Jul/08 01:55 AM
MDL-9983, MDL-13998, MDL-15552 core events related cleanup and potential sql injection problem fixed; please note the changes are not backwards compatible, 3rd party code will need to be updated - sorry for the trouble
MODIFY user/edit.php   Rev. 1.167.2.10    (+6 -4 lines)
MODIFY lib/db/events.php   Rev. 1.4.4.1    (+45 -1 lines)
MODIFY course/lib.php   Rev. 1.538.2.48    (+10 -5 lines)
MODIFY course/delete.php   Rev. 1.29.2.2    (+2 -5 lines)
MODIFY auth/email/auth.php   Rev. 1.12.2.3    (+3 -0 lines)
MODIFY group/members.php   Rev. 1.3.2.6    (+1 -7 lines)
MODIFY lib/moodlelib.php   Rev. 1.960.2.80    (+21 -4 lines)
MODIFY group/group.php   Rev. 1.15.2.3    (+0 -5 lines)
MODIFY auth/ldap/auth.php   Rev. 1.27.2.25    (+3 -0 lines)
MODIFY group/lib.php   Rev. 1.8.2.8    (+96 -24 lines)
MODIFY course/category.php   Rev. 1.119.2.8    (+6 -6 lines)
MODIFY user/editadvanced.php   Rev. 1.21.2.10    (+14 -6 lines)
MODIFY group/grouping.php   Rev. 1.14.2.4    (+0 -5 lines)
MODIFY course/edit.php   Rev. 1.108.2.2    (+1 -3 lines)
MODIFY login/change_password.php   Rev. 1.62.2.2    (+1 -7 lines)
MODIFY lib/eventslib.php   Rev. 1.16.2.1    (+3 -3 lines)
Petr Skoda committed 15 files to 'Moodle CVS' - 07/Jul/08 01:57 AM
MDL-9983, MDL-13998 core events related cleanup; merged from MOODLE_19_STABLE
MODIFY course/edit.php   Rev. 1.114    (+1 -3 lines)
MODIFY group/group.php   Rev. 1.21    (+0 -5 lines)
MODIFY course/lib.php   Rev. 1.607    (+9 -4 lines)
MODIFY course/delete.php   Rev. 1.34    (+2 -5 lines)
MODIFY auth/email/auth.php   Rev. 1.18    (+3 -0 lines)
MODIFY lib/db/events.php   Rev. 1.5    (+45 -1 lines)
MODIFY user/edit.php   Rev. 1.180    (+6 -4 lines)
MODIFY group/lib.php   Rev. 1.16    (+93 -23 lines)
MODIFY group/members.php   Rev. 1.12    (+1 -7 lines)
MODIFY course/category.php   Rev. 1.134    (+6 -6 lines)
MODIFY login/change_password.php   Rev. 1.68    (+1 -7 lines)
MODIFY lib/moodlelib.php   Rev. 1.1066    (+22 -5 lines)
MODIFY user/editadvanced.php   Rev. 1.35    (+14 -6 lines)
MODIFY auth/ldap/auth.php   Rev. 1.62    (+3 -0 lines)
MODIFY group/grouping.php   Rev. 1.21    (+0 -5 lines)
Petr Skoda committed 2 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 07/Jul/08 03:26 AM
MDL-9983 role assignment related triggers
MODIFY lib/db/events.php   Rev. 1.4.4.2    (+6 -1 lines)
MODIFY lib/accesslib.php   Rev. 1.421.2.66    (+52 -43 lines)
Petr Skoda committed 2 files to 'Moodle CVS' - 07/Jul/08 03:30 AM
MDL-9983 role assignment related triggers; merged from MOODLE_19_STABLE
MODIFY lib/db/events.php   Rev. 1.6    (+6 -1 lines)
MODIFY lib/accesslib.php   Rev. 1.504    (+52 -43 lines)
Petr Skoda committed 4 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 07/Jul/08 06:54 AM
MDL-9983 role_unassign should not touch group members table directly - we need events
MODIFY lib/accesslib.php   Rev. 1.421.2.67    (+3 -7 lines)
MODIFY lib/db/events.php   Rev. 1.4.4.3    (+2 -2 lines)
MODIFY group/lib.php   Rev. 1.8.2.9    (+20 -5 lines)
MODIFY lib/moodlelib.php   Rev. 1.960.2.81    (+3 -3 lines)
Petr Skoda committed 4 files to 'Moodle CVS' - 07/Jul/08 06:54 AM
MDL-9983 role_unassign should not touch group members table directly - we need events; merged from MOODLE_19_STABLE
MODIFY lib/accesslib.php   Rev. 1.505    (+3 -6 lines)
MODIFY lib/db/events.php   Rev. 1.7    (+2 -2 lines)
MODIFY lib/moodlelib.php   Rev. 1.1067    (+3 -3 lines)
MODIFY group/lib.php   Rev. 1.17    (+24 -6 lines)