Dataform System events: Difference between revisions
From MoodleDocs
Module administration
Creating an activity
- Overview
- Activity administration
- Building an activity
- CSS tips and tricks
- JS tips and tricks
- Activating RSS
- Activity workflow
- Grading
Working with the activity
See also
m (Text replacement - "class="nicetable"" to "class="wikitable"") |
|||
Line 8: | Line 8: | ||
==Activity== | ==Activity== | ||
<!-- | <!-- | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{ Dataform system event table row | | course_module_viewed | The activity has been displayed. }} | {{ Dataform system event table row | | course_module_viewed | The activity has been displayed. }} | ||
{{ Dataform system event table row | | course_module_instance_list_viewed | The Dataform index has been viewed. }} | {{ Dataform system event table row | | course_module_instance_list_viewed | The Dataform index has been viewed. }} | ||
Line 15: | Line 15: | ||
==View== | ==View== | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{Dataform system event table row | | view_created | A view has been added to the activity. }} | {{Dataform system event table row | | view_created | A view has been added to the activity. }} | ||
{{Dataform system event table row | | view_updated | A view has been updated in the activity. }} | {{Dataform system event table row | | view_updated | A view has been updated in the activity. }} | ||
Line 22: | Line 22: | ||
|} | |} | ||
==Field== | ==Field== | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{Dataform system event table row | | field_created | A field has been added to the activity. }} | {{Dataform system event table row | | field_created | A field has been added to the activity. }} | ||
{{Dataform system event table row | | field_updated | A field has been updated in the activity. }} | {{Dataform system event table row | | field_updated | A field has been updated in the activity. }} | ||
Line 29: | Line 29: | ||
|} | |} | ||
==Filter== | ==Filter== | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{Dataform system event table row | | filter_created | A filter has been added to the activity. }} | {{Dataform system event table row | | filter_created | A filter has been added to the activity. }} | ||
{{Dataform system event table row | | filter_updated | A filter has been updated in the activity. }} | {{Dataform system event table row | | filter_updated | A filter has been updated in the activity. }} | ||
Line 35: | Line 35: | ||
|} | |} | ||
==Entry== | ==Entry== | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{Dataform system event table row | | entry_created | An entry has been added to the activity. }} | {{Dataform system event table row | | entry_created | An entry has been added to the activity. }} | ||
{{Dataform system event table row | | entry_updated | An entry has been updated in the activity. }} | {{Dataform system event table row | | entry_updated | An entry has been updated in the activity. }} | ||
Line 42: | Line 42: | ||
==Other== | ==Other== | ||
{| class=" | {| class="wikitable" style="background-color:inherit;" | ||
{{Dataform system event table row | | comment_created | A comment has been added to an entry in the activity. }} | {{Dataform system event table row | | comment_created | A comment has been added to an entry in the activity. }} | ||
{{Dataform system event table row | | comment_deleted | A comment has been deleted from an entry in the activity. }} | {{Dataform system event table row | | comment_deleted | A comment has been deleted from an entry in the activity. }} |
Latest revision as of 15:14, 10 August 2021
The Dataform system events are triggered with attached data during the activity, at moments that may be of interest and worth capturing for various purposes (e.g. logging, notifications). You can capture these events in your existing custom module or create a designated plugin (e.g. block, local) for that.
Add-on views and fields may provide further event triggers.
Activity
View
view_created |
A view has been added to the activity. |
view_updated |
A view has been updated in the activity. |
view_deleted |
A view has been deleted from the activity. |
view_viewed |
A view has been displayed. |
Field
field_created |
A field has been added to the activity. |
field_updated |
A field has been updated in the activity. |
field_deleted |
A field has been deleted from the activity. |
field_content_updated |
The entry content of a field has been updated. |
Filter
filter_created |
A filter has been added to the activity. |
filter_updated |
A filter has been updated in the activity. |
filter_deleted |
A filter has been deleted from the activity. |
Entry
entry_created |
An entry has been added to the activity. |
entry_updated |
An entry has been updated in the activity. |
entry_deleted |
An entry has been deleted from the activity. |
Other
comment_created |
A comment has been added to an entry in the activity. |
comment_deleted |
A comment has been deleted from an entry in the activity. |
rating_created |
A rating has been added to an entry in the activity. |
rating_deleted |
A rating has been deleted from an entry in the activity. |