djplaner / moodle-mod_bim

A Moodle activity module the provides support for managing/marking individual student blogs hosted on external services.
http://davidtjones.wordpress.com/research/bam-blog-aggregation-management/
7 stars 2 forks source link

Deprecation of add_to_log #96

Closed djplaner closed 8 years ago

djplaner commented 9 years ago

From a Moodle 2.8 debugging message

dd_to_log() has been deprecated, please rewrite your code to the new events API

line 48 of /lib/deprecatedlib.php: call to debugging()
line 70 of /mod/bim/view.php: call to add_to_log()
djplaner commented 8 years ago

https://docs.moodle.org/dev/Migrating_logging_calls_in_plugins Offers migration details

Starting with replacing view - includes adding a folder Did view index

Now starting on bim defined versions.

Need to choose a verb/name for events from this list https://docs.moodle.org/dev/Event_2#Verb_list

Naming convention - https://docs.moodle.org/dev/Event_2#Events_naming_convention

_ Student has the following events with possible verbs underneath - view details viewed - details details_viewed **\* DONE *** - registration success created - registration registration_created - registration start start - registration registration_started Process is # Define a language string for the event name in YOURPLUGINDIR/lang/en/FULLPLUGINNAME.php.
djplaner commented 8 years ago

now doing lib/bim_rss.php

registration error

Invalid URL no retrieve no feed links wrong url heading timeout

Removed these as it doesn't appear to fit with the intent of the Event stuff.

djplaner commented 8 years ago

Coordinator

allocate_markers.php - seem these take a parameter indicate which event

manage_marking.php

manage_questions.php

djplaner commented 8 years ago

Now the marker events

generateOPML.php

generate opml - OPML created ** DONE *

view.php

posts allocate --- show all marking for a single students

students_viewed * change * \ DONE **

posts allocate Processing allocation -- updated student marking

posts_updated \ DONE **

posts allocate error processing form

posts_error??? * REMOVED *

student details

studentList viewed * DONE *

post mark Starting marking

marking started marking_started \ DONE **

post mark Marking change

marking updated marking_assessed * DONE *

change blog Start/Display

registration viewed * DONE **

Change blog cancel * delete *

change blog updated with user detail

registration updated * ALREADY DONE *