]> git.mjollnir.org Git - moodle.git/commit
mod-lesson MDL-21006 Huge refactoring of the lesson code
authorSam Hemelryk <sam@moodle.com>
Wed, 16 Dec 2009 02:00:48 +0000 (02:00 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 16 Dec 2009 02:00:48 +0000 (02:00 +0000)
commit0a4abb7306d4cf0ddf4fad23acc37243916e2a32
tree84ae8daa7a8133bb9320031457c3e9b6a4e64fe1
parentfb1ee4d5488e6f61ca63147f401782d37efb8f32
mod-lesson MDL-21006 Huge refactoring of the lesson code
The following are notable changes made in this commit
* Lesson page type are now class based and extend an abstract class. This includes a class for the page type and a class for the creating/editing a instance of this page.
* Converted all forms to mforms
* Action script located in mod/action/* were worked into the above so far less switch statements and the action directory will be removed.
* Implements a custom renderer
* Converted everything to use page, output, and custom renderer methods
* Replaced all deprecated methods incl. print_textarea conversions
* Tried to cut down on excessive DB calls.
Things worth noting:
* The focus of this patch was on cleaning up the module not rewriting it, as such I have organized NOT rewritten. There are still many areas in the module where the code could be greatly improved however to do so would require a rethink/rewrite
61 files changed:
lang/en_utf8/help/lesson/displayleftif.html [new file with mode: 0644]
lang/en_utf8/lesson.php
mod/lesson/action/addbranchtable.php [deleted file]
mod/lesson/action/addcluster.php [deleted file]
mod/lesson/action/addendofbranch.php [deleted file]
mod/lesson/action/addendofcluster.php [deleted file]
mod/lesson/action/addpage.php [deleted file]
mod/lesson/action/confirmdelete.php [deleted file]
mod/lesson/action/continue.html [deleted file]
mod/lesson/action/continue.php [deleted file]
mod/lesson/action/delete.php [deleted file]
mod/lesson/action/editpage.php [deleted file]
mod/lesson/action/insertpage.php [deleted file]
mod/lesson/action/move.php [deleted file]
mod/lesson/action/moveit.php [deleted file]
mod/lesson/action/updatepage.php [deleted file]
mod/lesson/backuplib.php
mod/lesson/continue.php [new file with mode: 0644]
mod/lesson/db/access.php
mod/lesson/db/install.php
mod/lesson/db/install.xml
mod/lesson/db/upgrade.php
mod/lesson/edit.php
mod/lesson/editpage.php [new file with mode: 0644]
mod/lesson/editpage_form.php [new file with mode: 0644]
mod/lesson/essay.php
mod/lesson/essay_form.php [new file with mode: 0644]
mod/lesson/format.php
mod/lesson/grade.php
mod/lesson/highscores.php
mod/lesson/import.php
mod/lesson/import_form.php [new file with mode: 0644]
mod/lesson/importppt.php
mod/lesson/importpptlib.php [new file with mode: 0644]
mod/lesson/index.php
mod/lesson/lesson.css [moved from mod/lesson/styles.php with 88% similarity]
mod/lesson/lesson.php
mod/lesson/lib.php
mod/lesson/locallib.php
mod/lesson/mediafile.php
mod/lesson/mod_form.php
mod/lesson/pagetypes/branchtable.php [new file with mode: 0644]
mod/lesson/pagetypes/cluster.php [new file with mode: 0644]
mod/lesson/pagetypes/endofbranch.php [new file with mode: 0644]
mod/lesson/pagetypes/endofcluster.php [new file with mode: 0644]
mod/lesson/pagetypes/essay.php [new file with mode: 0644]
mod/lesson/pagetypes/matching.php [new file with mode: 0644]
mod/lesson/pagetypes/multichoice.php [new file with mode: 0644]
mod/lesson/pagetypes/numerical.php [new file with mode: 0644]
mod/lesson/pagetypes/shortanswer.php [new file with mode: 0644]
mod/lesson/pagetypes/truefalse.php [new file with mode: 0644]
mod/lesson/reformat.php
mod/lesson/renderer.php [new file with mode: 0644]
mod/lesson/report.php
mod/lesson/restorelib.php
mod/lesson/settings.php [new file with mode: 0644]
mod/lesson/tabs.php
mod/lesson/timer.js
mod/lesson/version.php
mod/lesson/view.php
mod/lesson/view_form.php [new file with mode: 0644]