totara/facetoface-2.0 — pull request #2 by emeneo (2012-06-01 04:20:46+00:00)
Title: New completion condition: Session is over

Hello

This condition is a thick box available if the Activity completion selected is : Show ...

The completion condition are: A session of the module facetoface must be over with people still attendee to this session and the module must have the condition enable in the setting.

The verification of thoses condition and the completion happen when the cron.php of facetoface is launch, because my idea was to do with the 'schedule task' of windows a daily update of the database by running the admin/cron.php everyday.

My modification are in the lib.php and the mod_form.php. I had to add a field completionsession in facetoface table, so that why I modify the db/upgrade.php. Finally I modify the view.php of facetoface just to quickly enable the condition require view for facetoface.

Let me know what do you think and if it is working for you or not.
Thanks