MDL-57688 mod_lesson: Move duplicated code to methods
commitdbba944e32236d0a8d1211521253c4bf308a56ed
authorJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 18 Jan 2017 12:16:23 +0000 (18 13:16 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Tue, 21 Mar 2017 14:18:44 +0000 (21 15:18 +0100)
tree87eb7d7c0040c3b12ceb9a6f942445f18d70f25b
parentf4d0909fc0f6438a2e6a92c278e4d2d52811bc1a
MDL-57688 mod_lesson: Move duplicated code to methods

Some code that will be used by Web Services was moved, we created new
methods to avoid code duplication:
- To generate the lesson messages on page view
- To check the time restrictions in a current attempt
mod/lesson/continue.php
mod/lesson/locallib.php
mod/lesson/view.php