Merge branch 'MDL-44006-m' of https://github.com/micaherne/moodle
authorDamyon Wiese <damyon@moodle.com>
Mon, 24 Feb 2014 04:30:55 +0000 (12:30 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 24 Feb 2014 04:30:55 +0000 (12:30 +0800)
1085 files changed:
admin/cli/backup.php [new file with mode: 0644]
admin/environment.xml
admin/settings/appearance.php
admin/tool/behat/lang/en/tool_behat.php
admin/tool/behat/renderer.php
admin/tool/behat/version.php
admin/tool/qeupgradehelper/README.txt [deleted file]
admin/tool/qeupgradehelper/afterupgradelib.php [deleted file]
admin/tool/qeupgradehelper/cli/convert.php [deleted file]
admin/tool/qeupgradehelper/convertquiz.php [deleted file]
admin/tool/qeupgradehelper/cronsetup.php [deleted file]
admin/tool/qeupgradehelper/cronsetup_form.php [deleted file]
admin/tool/qeupgradehelper/extracttestcase.php [deleted file]
admin/tool/qeupgradehelper/extracttestcase_form.php [deleted file]
admin/tool/qeupgradehelper/index.php [deleted file]
admin/tool/qeupgradehelper/lang/en/tool_qeupgradehelper.php [deleted file]
admin/tool/qeupgradehelper/lib.php [deleted file]
admin/tool/qeupgradehelper/listpreupgrade.php [deleted file]
admin/tool/qeupgradehelper/listtodo.php [deleted file]
admin/tool/qeupgradehelper/listupgraded.php [deleted file]
admin/tool/qeupgradehelper/locallib.php [deleted file]
admin/tool/qeupgradehelper/partialupgrade-example.php [deleted file]
admin/tool/qeupgradehelper/renderer.php [deleted file]
admin/tool/qeupgradehelper/resetquiz.php [deleted file]
admin/tool/qeupgradehelper/styles.css [deleted file]
admin/tool/xmldb/actions/XMLDBAction.class.php
admin/webservice/service_user_settings.php
auth/cas/auth.php
auth/db/tests/db_test.php
auth/ldap/auth.php
auth/ldap/tests/plugin_test.php
auth/tests/behat/behat_auth.php
auth/tests/behat/login.feature
backup/backup.php
backup/controller/backup_controller.class.php
backup/controller/base_controller.class.php
backup/controller/restore_controller.class.php
backup/import.php
backup/moodle2/backup_stepslib.php
backup/moodle2/restore_stepslib.php
backup/restore.php
backup/util/dbops/backup_controller_dbops.class.php
backup/util/dbops/backup_structure_dbops.class.php
backup/util/dbops/restore_dbops.class.php
backup/util/helper/backup_helper.class.php
backup/util/includes/backup_includes.php
backup/util/includes/restore_includes.php
backup/util/plan/backup_plan.class.php
backup/util/plan/base_plan.class.php
backup/util/plan/base_task.class.php
backup/util/plan/restore_plan.class.php
backup/util/plan/restore_structure_step.class.php
backup/util/structure/backup_structure_processor.class.php
backup/util/ui/renderer.php
backup/util/ui/restore_ui.class.php
backup/util/ui/restore_ui_stage.class.php
backup/util/xml/parser/progressive_parser.class.php
badges/mybadges.php
badges/tests/badgeslib_test.php
badges/view.php
blocks/activity_modules/block_activity_modules.php
blocks/activity_modules/lang/en/block_activity_modules.php
blocks/activity_modules/version.php
blocks/admin_bookmarks/block_admin_bookmarks.php
blocks/admin_bookmarks/create.php
blocks/admin_bookmarks/delete.php
blocks/admin_bookmarks/lang/en/block_admin_bookmarks.php
blocks/admin_bookmarks/version.php
blocks/badges/db/access.php
blocks/blog_menu/block_blog_menu.php
blocks/blog_menu/version.php
blocks/blog_recent/block_blog_recent.php
blocks/blog_recent/edit_form.php
blocks/blog_recent/version.php
blocks/blog_tags/block_blog_tags.php
blocks/blog_tags/edit_form.php
blocks/blog_tags/lang/en/block_blog_tags.php
blocks/blog_tags/version.php
blocks/calendar_month/lang/en/block_calendar_month.php
blocks/calendar_month/version.php
blocks/calendar_upcoming/lang/en/block_calendar_upcoming.php
blocks/calendar_upcoming/version.php
blocks/comments/block_comments.php
blocks/comments/lib.php
blocks/comments/tests/events_test.php
blocks/comments/version.php
blocks/community/block_community.php
blocks/community/communitycourse.php
blocks/community/db/upgrade.php
blocks/community/forms.php
blocks/community/lang/en/block_community.php
blocks/community/locallib.php
blocks/community/renderer.php
blocks/community/version.php
blocks/completionstatus/block_completionstatus.php
blocks/completionstatus/db/upgrade.php
blocks/completionstatus/details.php
blocks/completionstatus/version.php
blocks/course_list/block_course_list.php
blocks/course_list/lang/en/block_course_list.php
blocks/course_list/settings.php
blocks/course_list/version.php
blocks/course_overview/renderer.php
blocks/course_summary/block_course_summary.php
blocks/course_summary/db/upgrade.php
blocks/course_summary/version.php
blocks/edit_form.php
blocks/feedback/block_feedback.php
blocks/feedback/db/install.php
blocks/feedback/lang/en/block_feedback.php
blocks/feedback/version.php
blocks/glossary_random/backup/moodle2/restore_glossary_random_block_task.class.php
blocks/glossary_random/block_glossary_random.php
blocks/glossary_random/edit_form.php
blocks/glossary_random/lang/en/block_glossary_random.php
blocks/glossary_random/version.php
blocks/html/backup/moodle1/lib.php
blocks/html/backup/moodle2/backup_html_block_task.class.php
blocks/html/backup/moodle2/restore_html_block_task.class.php
blocks/html/block_html.php
blocks/html/db/upgrade.php
blocks/html/edit_form.php
blocks/html/lang/en/block_html.php
blocks/html/lib.php
blocks/html/settings.php
blocks/html/version.php
blocks/login/block_login.php
blocks/login/lang/en/block_login.php
blocks/login/version.php
blocks/mentees/block_mentees.php
blocks/mentees/edit_form.php
blocks/mentees/version.php
blocks/messages/block_messages.php
blocks/messages/lang/en/block_messages.php
blocks/messages/version.php
blocks/mnet_hosts/block_mnet_hosts.php
blocks/mnet_hosts/lang/en/block_mnet_hosts.php
blocks/mnet_hosts/version.php
blocks/moodleblock.class.php
blocks/myprofile/block_myprofile.php
blocks/myprofile/edit_form.php
blocks/myprofile/lang/en/block_myprofile.php
blocks/myprofile/version.php
blocks/navigation/db/upgrade.php
blocks/navigation/lang/en/block_navigation.php
blocks/news_items/block_news_items.php
blocks/news_items/lang/en/block_news_items.php
blocks/news_items/version.php
blocks/online_users/block_online_users.php
blocks/online_users/settings.php
blocks/online_users/version.php
blocks/participants/block_participants.php
blocks/participants/lang/en/block_participants.php
blocks/participants/version.php
blocks/private_files/block_private_files.php
blocks/private_files/edit.php
blocks/private_files/lang/en/block_private_files.php
blocks/private_files/renderer.php
blocks/private_files/version.php
blocks/quiz_results/backup/moodle2/restore_quiz_results_block_task.class.php
blocks/quiz_results/block_quiz_results.php
blocks/quiz_results/edit_form.php
blocks/quiz_results/lang/en/block_quiz_results.php
blocks/quiz_results/version.php
blocks/rss_client/backup/moodle1/lib.php
blocks/rss_client/backup/moodle2/backup_rss_client_block_task.class.php
blocks/rss_client/backup/moodle2/backup_rss_client_stepslib.php
blocks/rss_client/backup/moodle2/restore_rss_client_block_task.class.php
blocks/rss_client/backup/moodle2/restore_rss_client_stepslib.php
blocks/rss_client/block_rss_client.php
blocks/rss_client/edit_form.php
blocks/rss_client/editfeed.php
blocks/rss_client/lang/en/block_rss_client.php
blocks/rss_client/managefeeds.php
blocks/rss_client/settings.php
blocks/rss_client/version.php
blocks/rss_client/viewfeed.php
blocks/search_forums/block_search_forums.php
blocks/search_forums/lang/en/block_search_forums.php
blocks/search_forums/version.php
blocks/selfcompletion/block_selfcompletion.php
blocks/selfcompletion/db/upgrade.php
blocks/selfcompletion/lang/en/block_selfcompletion.php
blocks/selfcompletion/version.php
blocks/settings/block_settings.php
blocks/settings/db/upgrade.php
blocks/settings/edit_form.php
blocks/settings/lang/en/block_settings.php
blocks/settings/renderer.php
blocks/settings/version.php
blocks/site_main_menu/block_site_main_menu.php
blocks/site_main_menu/version.php
blocks/social_activities/block_social_activities.php
blocks/social_activities/lang/en/block_social_activities.php
blocks/social_activities/version.php
blocks/tag_flickr/block_tag_flickr.php
blocks/tag_flickr/edit_form.php
blocks/tag_flickr/lang/en/block_tag_flickr.php
blocks/tag_flickr/version.php
blocks/tag_youtube/block_tag_youtube.php
blocks/tag_youtube/edit_form.php
blocks/tag_youtube/lang/en/block_tag_youtube.php
blocks/tag_youtube/version.php
blocks/tags/block_tags.php
blocks/tags/edit_form.php
blocks/tags/settings.php
blocks/tags/version.php
blog/tests/bloglib_test.php
cache/classes/loaders.php
calendar/externallib.php
calendar/renderer.php
cohort/locallib.php
cohort/tests/cohortlib_test.php
config-dist.php
course/dndupload.js
course/edit.php
course/edit_form.php
course/editsection_form.php
course/format/formatlegacy.php
course/format/lib.php
course/format/renderer.php
course/format/topics/lib.php
course/format/upgrade.txt
course/format/weeks/lib.php
course/lib.php
course/moodleform_mod.php
course/renderer.php
course/rest.php
course/tests/behat/activities_visibility_icons.feature
course/tests/behat/behat_course.php
course/tests/behat/course_controls.feature
course/tests/behat/section_visibility.feature
course/tests/courselib_test.php
course/view.php
course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-debug.js
course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-min.js
course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop.js
course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-debug.js
course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-min.js
course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes.js
course/yui/src/dragdrop/js/resource.js
course/yui/src/toolboxes/js/resource.js
enrol/database/tests/sync_test.php
enrol/externallib.php
enrol/imsenterprise/lib.php
enrol/imsenterprise/tests/imsenterprise_test.php
enrol/manual/externallib.php
enrol/manual/manage.php
enrol/manual/tests/externallib_test.php
enrol/manual/unenrolself.php
enrol/meta/tests/plugin_test.php
enrol/paypal/unenrolself.php
enrol/self/lib.php
enrol/self/unenrolself.php
enrol/tests/enrollib_test.php
enrol/tests/externallib_test.php
files/tests/externallib_test.php
grade/edit/outcome/export.php
grade/grading/form/guide/backup/moodle2/backup_gradingform_guide_plugin.class.php
grade/grading/form/guide/backup/moodle2/restore_gradingform_guide_plugin.class.php
grade/grading/form/rubric/tests/behat/behat_gradingform_rubric.php [new file with mode: 0644]
grade/grading/form/rubric/tests/behat/edit_rubric.feature [new file with mode: 0644]
grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature [new file with mode: 0644]
grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature [new file with mode: 0644]
grade/grading/tests/behat/behat_grading.php [new file with mode: 0644]
grade/import/csv/index.php
grade/tests/edittreelib_test.php
grade/tests/externallib_test.php
group/clientlib.js
group/groupings.php
group/index.php
group/overview.php
install/lang/dz/error.php
install/lang/fr/error.php
install/lang/it/error.php
install/lang/nl/error.php
install/lang/zh_tw/error.php
lang/en/admin.php
lang/en/auth.php
lang/en/badges.php
lang/en/dbtransfer.php
lang/en/moodle.php
lib/ajax/ajaxlib.php
lib/behat/classes/behat_command.php
lib/behat/classes/behat_selectors.php
lib/behat/form_field/behat_form_editor.php
lib/behat/form_field/behat_form_field.php
lib/behat/form_field/behat_form_select.php
lib/classes/event/assessable_submitted.php
lib/classes/event/assessable_uploaded.php
lib/classes/event/base.php
lib/classes/event/blog_association_created.php
lib/classes/event/comment_created.php
lib/classes/event/comment_deleted.php
lib/classes/event/comments_viewed.php
lib/classes/event/course_module_instance_list_viewed.php
lib/classes/event/course_module_viewed.php
lib/classes/event/user_enrolment_created.php
lib/classes/event/user_enrolment_deleted.php
lib/classes/event/user_login_failed.php [new file with mode: 0644]
lib/classes/lock/db_record_lock_factory.php [new file with mode: 0644]
lib/classes/lock/file_lock_factory.php [new file with mode: 0644]
lib/classes/lock/lock.php [new file with mode: 0644]
lib/classes/lock/lock_config.php [new file with mode: 0644]
lib/classes/lock/lock_factory.php [new file with mode: 0644]
lib/classes/lock/postgres_lock_factory.php [new file with mode: 0644]
lib/classes/plugin_manager.php
lib/classes/progress/base.php [moved from backup/util/progress/core_backup_progress.class.php with 78% similarity]
lib/classes/progress/display.php [moved from backup/util/progress/core_backup_display_progress.class.php with 86% similarity]
lib/classes/progress/display_if_slow.php [moved from backup/util/progress/core_backup_display_progress_if_slow.class.php with 82% similarity]
lib/classes/progress/null.php [moved from backup/util/progress/core_backup_null_progress.class.php with 88% similarity]
lib/classes/update/deployer.php
lib/cronlib.php
lib/customcheckslib.php
lib/db/events.php
lib/db/install.xml
lib/db/services.php
lib/db/upgrade.php
lib/ddl/database_manager.php
lib/ddl/mysql_sql_generator.php
lib/deprecatedlib.php
lib/dml/moodle_database.php
lib/dml/mssql_native_moodle_database.php
lib/dml/mysqli_native_moodle_database.php
lib/dml/oci_native_moodle_database.php
lib/dml/pdo_moodle_database.php
lib/dml/pgsql_native_moodle_database.php
lib/dml/sqlite3_pdo_moodle_database.php
lib/dml/sqlsrv_native_moodle_database.php
lib/dml/tests/dml_test.php
lib/dtl/database_exporter.php
lib/environmentlib.php
lib/filestorage/tgz_extractor.php
lib/form/yui/build/moodle-form-shortforms/moodle-form-shortforms-debug.js
lib/form/yui/build/moodle-form-shortforms/moodle-form-shortforms-min.js
lib/form/yui/build/moodle-form-shortforms/moodle-form-shortforms.js
lib/form/yui/src/shortforms/js/shortforms.js
lib/formslib.php
lib/grade/grade_item.php
lib/javascript-static.js
lib/moodlelib.php
lib/outputactions.php
lib/outputcomponents.php
lib/outputlib.php
lib/outputrenderers.php
lib/outputrequirementslib.php
lib/pdflib.php
lib/phpunit/classes/advanced_testcase.php
lib/phpunit/classes/event_mock.php
lib/portfolio/exporter.php
lib/portfoliolib.php
lib/setup.php
lib/setuplib.php
lib/tablelib.php
lib/tests/accesslib_test.php
lib/tests/authlib_test.php
lib/tests/behat/behat_hooks.php
lib/tests/code_test.php [deleted file]
lib/tests/completionlib_test.php
lib/tests/coursecatlib_test.php
lib/tests/event_content_viewed_test.php
lib/tests/event_course_module_instance_list_viewed.php
lib/tests/event_course_module_viewed.php
lib/tests/event_test.php
lib/tests/events_test.php
lib/tests/fixtures/event_fixtures.php
lib/tests/lock_config_test.php [new file with mode: 0644]
lib/tests/lock_test.php [new file with mode: 0644]
lib/tests/messagelib_test.php
lib/tests/moodlelib_test.php
lib/tests/progress_test.php [moved from backup/util/progress/tests/progress_test.php with 81% similarity]
lib/tests/tablelib_test.php
lib/tests/upgradelib_test.php
lib/upgrade.txt
lib/upgradelib.php
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-debug.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-min.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue.js
lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js
lib/yui/build/moodle-core-dock/moodle-core-dock-min.js
lib/yui/build/moodle-core-dock/moodle-core-dock.js
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop-debug.js
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop-min.js
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop.js
lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js [new file with mode: 0644]
lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-min.js [new file with mode: 0644]
lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll.js [new file with mode: 0644]
lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-debug.js
lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-min.js
lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception.js
lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-debug.js
lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-min.js
lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert.js
lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-debug.js
lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-min.js
lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js
lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-min.js
lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-debug.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-min.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js
lib/yui/src/chooserdialogue/js/chooserdialogue.js
lib/yui/src/dock/js/dock.js
lib/yui/src/dock/js/tabheightmanager.js
lib/yui/src/dragdrop/js/dragdrop.js
lib/yui/src/lockscroll/build.json [new file with mode: 0644]
lib/yui/src/lockscroll/js/lockscroll.js [new file with mode: 0644]
lib/yui/src/lockscroll/meta/lockscroll.json [new file with mode: 0644]
lib/yui/src/notification/build.json
lib/yui/src/notification/js/ajaxexception.js
lib/yui/src/notification/js/alert.js
lib/yui/src/notification/js/confirm.js
lib/yui/src/notification/js/dialogue.js
lib/yui/src/notification/js/exception.js
lib/yui/src/notification/js/info.js [new file with mode: 0644]
lib/yui/src/notification/meta/notification.json
lib/yui/src/tooltip/js/tooltip.js
lib/yuilib/3.13.0/widget-modality/widget-modality-coverage.js
lib/yuilib/3.13.0/widget-modality/widget-modality-debug.js
lib/yuilib/3.13.0/widget-modality/widget-modality-min.js
lib/yuilib/3.13.0/widget-modality/widget-modality.js
lib/yuilib/readme_moodle.txt
message/tests/behat/message_participants.feature [new file with mode: 0644]
mod/assign/classes/event/all_submissions_downloaded.php
mod/assign/classes/event/assessable_submitted.php
mod/assign/classes/event/extension_granted.php
mod/assign/classes/event/identities_revealed.php
mod/assign/classes/event/marker_updated.php
mod/assign/classes/event/statement_accepted.php
mod/assign/classes/event/submission_created.php [new file with mode: 0644]
mod/assign/classes/event/submission_duplicated.php
mod/assign/classes/event/submission_graded.php
mod/assign/classes/event/submission_locked.php
mod/assign/classes/event/submission_status_updated.php
mod/assign/classes/event/submission_unlocked.php
mod/assign/classes/event/submission_updated.php
mod/assign/classes/event/workflow_state_updated.php
mod/assign/db/services.php
mod/assign/externallib.php
mod/assign/feedback/comments/locallib.php
mod/assign/feedback/editpdf/classes/document_services.php
mod/assign/feedback/editpdf/classes/pdf.php
mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js
mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-min.js
mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js
mod/assign/feedback/editpdf/yui/src/editor/js/editor.js
mod/assign/gradingtable.php
mod/assign/lang/en/assign.php
mod/assign/locallib.php
mod/assign/submission/comments/tests/events_test.php
mod/assign/submission/file/classes/event/assessable_uploaded.php
mod/assign/submission/file/classes/event/submission_created.php [new file with mode: 0644]
mod/assign/submission/file/classes/event/submission_updated.php [new file with mode: 0644]
mod/assign/submission/file/locallib.php
mod/assign/submission/file/tests/events_test.php
mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php
mod/assign/submission/onlinetext/classes/event/submission_created.php [new file with mode: 0644]
mod/assign/submission/onlinetext/classes/event/submission_updated.php [new file with mode: 0644]
mod/assign/submission/onlinetext/locallib.php
mod/assign/submission/onlinetext/tests/events_test.php
mod/assign/tests/behat/quickgrading.feature [new file with mode: 0644]
mod/assign/tests/event_test.php [new file with mode: 0644]
mod/assign/tests/externallib_test.php
mod/assign/tests/fixtures/event_mod_assign_fixtures.php [new file with mode: 0644]
mod/assign/upgrade.txt
mod/assign/version.php
mod/assignment/backup/moodle1/lib.php
mod/assignment/backup/moodle2/backup_assignment_stepslib.php
mod/assignment/backup/moodle2/restore_assignment_activity_task.class.php
mod/assignment/backup/moodle2/restore_assignment_stepslib.php
mod/assignment/db/messages.php
mod/assignment/lang/en/assignment.php
mod/assignment/lib.php
mod/assignment/type/offline/backup/moodle1/lib.php
mod/assignment/type/offline/backup/moodle2/backup_assignment_offline_subplugin.class.php
mod/assignment/type/offline/backup/moodle2/restore_assignment_offline_subplugin.class.php
mod/assignment/type/offline/lang/en/assignment_offline.php
mod/assignment/type/offline/version.php
mod/assignment/type/online/backup/moodle1/lib.php
mod/assignment/type/online/lang/en/assignment_online.php
mod/assignment/type/online/version.php
mod/assignment/type/upload/backup/moodle1/lib.php
mod/assignment/type/upload/lang/en/assignment_upload.php
mod/assignment/type/upload/version.php
mod/assignment/type/uploadsingle/backup/moodle1/lib.php
mod/assignment/type/uploadsingle/lang/en/assignment_uploadsingle.php
mod/assignment/type/uploadsingle/version.php
mod/assignment/version.php
mod/book/classes/event/chapter_created.php
mod/book/classes/event/chapter_deleted.php
mod/book/classes/event/chapter_updated.php
mod/book/classes/event/chapter_viewed.php
mod/book/tests/events_test.php
mod/book/tool/exportimscp/classes/event/book_exported.php
mod/book/tool/exportimscp/tests/events_test.php
mod/book/tool/importhtml/tests/locallib_test.php
mod/book/tool/print/classes/event/book_printed.php
mod/book/tool/print/classes/event/chapter_printed.php
mod/book/tool/print/tests/events_test.php
mod/book/version.php
mod/chat/backup/moodle1/lib.php
mod/chat/backup/moodle2/backup_chat_stepslib.php
mod/chat/backup/moodle2/restore_chat_activity_task.class.php
mod/chat/backup/moodle2/restore_chat_stepslib.php
mod/chat/classes/event/message_sent.php
mod/chat/classes/event/sessions_viewed.php
mod/chat/lang/en/chat.php
mod/chat/lib.php
mod/chat/locallib.php
mod/chat/tests/events_test.php
mod/chat/version.php
mod/chat/view.php
mod/choice/backup/moodle1/lib.php
mod/choice/backup/moodle2/backup_choice_settingslib.php
mod/choice/backup/moodle2/backup_choice_stepslib.php
mod/choice/backup/moodle2/restore_choice_activity_task.class.php
mod/choice/backup/moodle2/restore_choice_stepslib.php
mod/choice/classes/event/answer_submitted.php
mod/choice/classes/event/answer_updated.php
mod/choice/classes/event/report_viewed.php
mod/choice/lang/en/choice.php
mod/choice/lib.php
mod/choice/renderer.php
mod/choice/report.php
mod/choice/tests/events_test.php
mod/choice/version.php
mod/choice/view.php
mod/data/backup/moodle1/lib.php
mod/data/backup/moodle2/backup_data_stepslib.php
mod/data/backup/moodle2/restore_data_activity_task.class.php
mod/data/backup/moodle2/restore_data_stepslib.php
mod/data/classes/event/course_module_instance_list_viewed.php [moved from admin/tool/qeupgradehelper/version.php with 71% similarity]
mod/data/classes/event/course_module_viewed.php [moved from admin/tool/qeupgradehelper/db/install.php with 61% similarity]
mod/data/classes/event/field_created.php [new file with mode: 0644]
mod/data/classes/event/field_deleted.php [new file with mode: 0644]
mod/data/classes/event/field_updated.php [new file with mode: 0644]
mod/data/classes/event/record_created.php [new file with mode: 0644]
mod/data/classes/event/record_deleted.php [new file with mode: 0644]
mod/data/classes/event/record_updated.php [new file with mode: 0644]
mod/data/classes/event/template_updated.php [new file with mode: 0644]
mod/data/classes/event/template_viewed.php [new file with mode: 0644]
mod/data/css.php
mod/data/edit.php
mod/data/export.php
mod/data/field.php
mod/data/import.php
mod/data/index.php
mod/data/js.php
mod/data/lang/en/data.php
mod/data/lib.php
mod/data/locallib.php
mod/data/preset.php
mod/data/templates.php
mod/data/tests/events_test.php [new file with mode: 0644]
mod/data/tests/lib_test.php
mod/data/version.php
mod/data/view.php
mod/feedback/ajax.php
mod/feedback/analysis.php
mod/feedback/analysis_course.php
mod/feedback/analysis_to_excel.php
mod/feedback/backup/moodle1/lib.php
mod/feedback/backup/moodle2/backup_feedback_settingslib.php
mod/feedback/backup/moodle2/backup_feedback_stepslib.php
mod/feedback/backup/moodle2/restore_feedback_activity_task.class.php
mod/feedback/backup/moodle2/restore_feedback_stepslib.php
mod/feedback/choose_group_form.php
mod/feedback/classes/event/response_deleted.php
mod/feedback/classes/event/response_submitted.php
mod/feedback/complete.php
mod/feedback/complete_guest.php
mod/feedback/db/messages.php
mod/feedback/delete_completed.php
mod/feedback/delete_completed_form.php
mod/feedback/delete_item.php
mod/feedback/delete_item_form.php
mod/feedback/delete_template.php
mod/feedback/delete_template_form.php
mod/feedback/edit.php
mod/feedback/edit_form.php
mod/feedback/edit_item.php
mod/feedback/export.php
mod/feedback/import.php
mod/feedback/import_form.php
mod/feedback/index.php
mod/feedback/item/multichoice/lib.php
mod/feedback/item/multichoicerated/lib.php
mod/feedback/lang/en/feedback.php
mod/feedback/lib.php
mod/feedback/mapcourse.php
mod/feedback/mod_form.php
mod/feedback/print.php
mod/feedback/show_entries.php
mod/feedback/show_entries_anonym.php
mod/feedback/show_nonrespondents.php
mod/feedback/styles.css
mod/feedback/tabs.php
mod/feedback/tests/events_test.php
mod/feedback/unmapcourse.php
mod/feedback/use_templ.php
mod/feedback/use_templ_form.php
mod/feedback/version.php
mod/feedback/view.php
mod/folder/backup/moodle1/lib.php
mod/folder/backup/moodle2/backup_folder_activity_task.class.php
mod/folder/backup/moodle2/backup_folder_stepslib.php
mod/folder/backup/moodle2/restore_folder_activity_task.class.php
mod/folder/backup/moodle2/restore_folder_stepslib.php
mod/folder/classes/event/folder_updated.php
mod/folder/db/install.php
mod/folder/db/upgrade.php
mod/folder/edit.php
mod/folder/edit_form.php
mod/folder/index.php
mod/folder/lang/en/folder.php
mod/folder/lib.php
mod/folder/locallib.php
mod/folder/mod_form.php
mod/folder/renderer.php
mod/folder/settings.php
mod/folder/tests/events_test.php
mod/folder/version.php
mod/folder/view.php
mod/forum/backup/moodle1/lib.php
mod/forum/backup/moodle2/backup_forum_activity_task.class.php
mod/forum/backup/moodle2/backup_forum_settingslib.php
mod/forum/backup/moodle2/backup_forum_stepslib.php
mod/forum/backup/moodle2/restore_forum_activity_task.class.php
mod/forum/backup/moodle2/restore_forum_stepslib.php
mod/forum/classes/event/assessable_uploaded.php
mod/forum/classes/event/course_module_instance_list_viewed.php [moved from admin/tool/qeupgradehelper/settings.php with 57% similarity]
mod/forum/classes/event/course_searched.php [new file with mode: 0644]
mod/forum/classes/event/discussion_created.php [new file with mode: 0644]
mod/forum/classes/event/discussion_deleted.php [new file with mode: 0644]
mod/forum/classes/event/discussion_moved.php [new file with mode: 0644]
mod/forum/classes/event/discussion_updated.php [new file with mode: 0644]
mod/forum/classes/event/discussion_viewed.php [new file with mode: 0644]
mod/forum/classes/event/forum_viewed.php [new file with mode: 0644]
mod/forum/classes/event/post_created.php [new file with mode: 0644]
mod/forum/classes/event/post_deleted.php [new file with mode: 0644]
mod/forum/classes/event/post_updated.php [new file with mode: 0644]
mod/forum/classes/event/readtracking_disabled.php [new file with mode: 0644]
mod/forum/classes/event/readtracking_enabled.php [new file with mode: 0644]
mod/forum/classes/event/subscribers_viewed.php [new file with mode: 0644]
mod/forum/classes/event/subscription_created.php [new file with mode: 0644]
mod/forum/classes/event/subscription_deleted.php [new file with mode: 0644]
mod/forum/classes/event/userreport_viewed.php [new file with mode: 0644]
mod/forum/classes/post_form.php
mod/forum/db/messages.php
mod/forum/db/upgrade.php
mod/forum/discuss.php
mod/forum/index.php
mod/forum/lang/en/forum.php
mod/forum/lib.php
mod/forum/locallib.php
mod/forum/markposts.php
mod/forum/mod_form.php
mod/forum/post.php
mod/forum/renderer.php
mod/forum/rsslib.php
mod/forum/search.php
mod/forum/settings.php
mod/forum/settracking.php
mod/forum/subscribe.php
mod/forum/subscribers.php
mod/forum/tests/events_test.php [new file with mode: 0644]
mod/forum/tests/externallib_test.php
mod/forum/tests/lib_test.php
mod/forum/unsubscribeall.php
mod/forum/user.php
mod/forum/version.php
mod/forum/view.php
mod/glossary/backup/moodle1/lib.php
mod/glossary/backup/moodle2/backup_glossary_stepslib.php
mod/glossary/backup/moodle2/restore_glossary_activity_task.class.php
mod/glossary/backup/moodle2/restore_glossary_stepslib.php
mod/glossary/deleteentry.php
mod/glossary/edit.php
mod/glossary/editcategories.php
mod/glossary/export.php
mod/glossary/exportentry.php
mod/glossary/import.php
mod/glossary/lang/en/glossary.php
mod/glossary/lib.php
mod/glossary/locallib.php
mod/glossary/tests/events_test.php
mod/glossary/version.php
mod/glossary/view.php
mod/imscp/version.php
mod/label/version.php
mod/lesson/classes/event/essay_assessed.php
mod/lesson/classes/event/essay_attempt_viewed.php
mod/lesson/classes/event/highscore_added.php
mod/lesson/classes/event/highscores_viewed.php
mod/lesson/classes/event/lesson_ended.php
mod/lesson/classes/event/lesson_started.php
mod/lesson/import.php
mod/lesson/tests/events_test.php
mod/lesson/version.php
mod/lti/grade.php
mod/lti/version.php
mod/page/version.php
mod/page/view.php
mod/quiz/attempt.php
mod/quiz/attemptlib.php
mod/quiz/classes/event/attempt_abandoned.php
mod/quiz/classes/event/attempt_becameoverdue.php
mod/quiz/classes/event/attempt_started.php
mod/quiz/classes/event/attempt_submitted.php
mod/quiz/db/install.xml
mod/quiz/db/upgrade.php
mod/quiz/lib.php
mod/quiz/locallib.php
mod/quiz/report/default.php
mod/quiz/report/statistics/classes/calculated.php
mod/quiz/report/statistics/classes/calculator.php
mod/quiz/report/statistics/lang/en/quiz_statistics.php
mod/quiz/report/statistics/report.php
mod/quiz/report/statistics/statistics_form.php
mod/quiz/report/statistics/statistics_table.php
mod/quiz/report/statistics/tests/fixtures/mdl_question_states.csv
mod/quiz/report/statistics/tests/fixtures/responsecounts00.csv [new file with mode: 0644]
mod/quiz/report/statistics/tests/statistics_test.php
mod/quiz/report/statistics/tests/stats_from_steps_walkthrough_test.php
mod/quiz/review.php
mod/quiz/startattempt.php
mod/quiz/styles.css
mod/quiz/summary.php
mod/quiz/tests/events_test.php
mod/quiz/tests/quizdisplayoptions_test.php
mod/quiz/version.php
mod/resource/backup/moodle1/lib.php
mod/resource/backup/moodle2/backup_resource_stepslib.php
mod/resource/backup/moodle2/restore_resource_activity_task.class.php
mod/resource/backup/moodle2/restore_resource_stepslib.php
mod/resource/db/upgrade.php
mod/resource/index.php
mod/resource/lang/en/resource.php
mod/resource/lib.php
mod/resource/locallib.php
mod/resource/mod_form.php
mod/resource/settings.php
mod/resource/tests/events_test.php
mod/resource/tests/generator/lib.php
mod/resource/tests/generator_test.php
mod/resource/version.php
mod/resource/view.php
mod/scorm/backup/moodle1/lib.php
mod/scorm/backup/moodle2/backup_scorm_stepslib.php
mod/scorm/backup/moodle2/restore_scorm_activity_task.class.php
mod/scorm/backup/moodle2/restore_scorm_stepslib.php
mod/scorm/classes/event/attempt_deleted.php
mod/scorm/classes/event/course_module_viewed.php
mod/scorm/classes/event/interactions_viewed.php
mod/scorm/classes/event/report_viewed.php
mod/scorm/classes/event/sco_launched.php
mod/scorm/classes/event/tracks_viewed.php
mod/scorm/classes/event/user_report_viewed.php
mod/scorm/datamodels/aicclib.php
mod/scorm/datamodels/scormlib.php
mod/scorm/db/upgrade.php
mod/scorm/lang/en/scorm.php
mod/scorm/lib.php
mod/scorm/locallib.php
mod/scorm/report/userreportinteractions.php
mod/scorm/tabs.php
mod/scorm/tests/event_test.php
mod/scorm/version.php
mod/survey/version.php
mod/survey/view.php
mod/url/backup/moodle1/lib.php
mod/url/backup/moodle2/backup_url_stepslib.php
mod/url/backup/moodle2/restore_url_activity_task.class.php
mod/url/backup/moodle2/restore_url_stepslib.php
mod/url/db/install.php
mod/url/db/upgrade.php
mod/url/index.php
mod/url/lang/en/url.php
mod/url/lib.php
mod/url/locallib.php
mod/url/mod_form.php
mod/url/settings.php
mod/url/version.php
mod/url/view.php
mod/wiki/classes/event/comments_viewed.php
mod/wiki/classes/event/page_created.php
mod/wiki/classes/event/page_deleted.php
mod/wiki/classes/event/page_diff_viewed.php
mod/wiki/classes/event/page_history_viewed.php
mod/wiki/classes/event/page_locks_deleted.php
mod/wiki/classes/event/page_map_viewed.php
mod/wiki/classes/event/page_updated.php
mod/wiki/classes/event/page_version_deleted.php
mod/wiki/classes/event/page_version_restored.php
mod/wiki/classes/event/page_version_viewed.php
mod/wiki/classes/event/page_viewed.php
mod/wiki/comments.php
mod/wiki/db/upgrade.php
mod/wiki/diff.php
mod/wiki/edit.php
mod/wiki/edit_form.php
mod/wiki/editcomments.php
mod/wiki/editors/wikieditor.php
mod/wiki/editors/wikifiletable.php
mod/wiki/files.php
mod/wiki/history.php
mod/wiki/index.php
mod/wiki/instancecomments.php
mod/wiki/lib.php
mod/wiki/locallib.php
mod/wiki/lock.php
mod/wiki/map.php
mod/wiki/mod_form.php
mod/wiki/overridelocks.php
mod/wiki/pagelib.php
mod/wiki/prettyview.php
mod/wiki/restoreversion.php
mod/wiki/styles.css
mod/wiki/tests/events_test.php
mod/wiki/tests/wikiparser_test.php
mod/wiki/version.php
mod/wiki/view.php
mod/wiki/viewversion.php
mod/workshop/aggregate.php
mod/workshop/assessment.php
mod/workshop/classes/event/assessable_uploaded.php
mod/workshop/classes/event/assessment_evaluated.php [new file with mode: 0644]
mod/workshop/classes/event/assessment_evaluations_reset.php [new file with mode: 0644]
mod/workshop/classes/event/assessment_reevaluated.php [new file with mode: 0644]
mod/workshop/classes/event/assessments_reset.php [new file with mode: 0644]
mod/workshop/classes/event/course_module_viewed.php
mod/workshop/classes/event/instances_list_viewed.php [new file with mode: 0644]
mod/workshop/classes/event/phase_switched.php [new file with mode: 0644]
mod/workshop/classes/event/submission_assessed.php [new file with mode: 0644]
mod/workshop/classes/event/submission_created.php [new file with mode: 0644]
mod/workshop/classes/event/submission_reassessed.php [new file with mode: 0644]
mod/workshop/classes/event/submission_updated.php [new file with mode: 0644]
mod/workshop/classes/event/submission_viewed.php [new file with mode: 0644]
mod/workshop/exassessment.php
mod/workshop/exsubmission.php
mod/workshop/index.php
mod/workshop/lang/en/workshop.php
mod/workshop/lib.php
mod/workshop/locallib.php
mod/workshop/submission.php
mod/workshop/tests/events_test.php [new file with mode: 0644]
mod/workshop/tests/fixtures/testable.php [new file with mode: 0644]
mod/workshop/tests/locallib_test.php
mod/workshop/toolbox.php
mod/workshop/version.php
mod/workshop/view.php
notes/tests/events_test.php
question/behaviour/behaviourbase.php
question/behaviour/manualgraded/tests/walkthrough_test.php
question/behaviour/rendererbase.php
question/classes/statistics/questions/all_calculated_for_qubaid_condition.php [new file with mode: 0644]
question/classes/statistics/questions/calculated.php
question/classes/statistics/questions/calculated_for_subquestion.php
question/classes/statistics/questions/calculator.php
question/classes/statistics/responses/analyser.php
question/classes/statistics/responses/analysis_for_actual_response.php
question/classes/statistics/responses/analysis_for_class.php
question/classes/statistics/responses/analysis_for_question.php
question/classes/statistics/responses/analysis_for_subpart.php
question/editlib.php
question/engine/datalib.php
question/engine/questionattempt.php
question/engine/tests/helpers.php
question/engine/tests/qubaid_condition_test.php [moved from question/engine/tests/datalib_test.php with 98% similarity]
question/engine/tests/question_engine_data_mapper_test.php [new file with mode: 0644]
question/engine/upgrade/upgradelib.php
question/format.php
question/format/blackboard_six/format.php
question/format/blackboard_six/formatbase.php
question/format/blackboard_six/formatpool.php
question/format/blackboard_six/formatqti.php
question/format/blackboard_six/tests/blackboardformatpool_test.php
question/format/blackboard_six/tests/blackboardsixformatqti_test.php
question/format/xml/format.php
question/format/xml/tests/xmlformat_test.php
question/preview.php
question/question.php
question/type/calculated/tests/upgradelibnewqe_test.php
question/type/calculatedmulti/tests/upgradelibnewqe_test.php
question/type/calculatedsimple/tests/upgradelibnewqe_test.php
question/type/description/tests/upgradelibnewqe_test.php
question/type/edit_question_form.php
question/type/essay/db/upgradelib.php
question/type/essay/tests/helper.php
question/type/essay/tests/upgradelibnewqe_test.php
question/type/match/renderer.php
question/type/match/tests/upgradelibnewqe_test.php
question/type/multianswer/tests/helper.php
question/type/multianswer/tests/upgradelibnewqe_test.php
question/type/multichoice/tests/upgradelibnewqe_test.php
question/type/numerical/tests/upgradelibnewqe_test.php
question/type/questiontypebase.php
question/type/random/tests/upgradelibnewqe_test.php
question/type/randomsamatch/backup/moodle1/lib.php [new file with mode: 0644]
question/type/randomsamatch/backup/moodle2/backup_qtype_randomsamatch_plugin.class.php
question/type/randomsamatch/backup/moodle2/restore_qtype_randomsamatch_plugin.class.php
question/type/randomsamatch/db/install.xml
question/type/randomsamatch/db/upgrade.php [new file with mode: 0644]
question/type/randomsamatch/db/upgradelib.php [new file with mode: 0644]
question/type/randomsamatch/edit_randomsamatch_form.php
question/type/randomsamatch/lang/en/qtype_randomsamatch.php
question/type/randomsamatch/lib.php [new file with mode: 0644]
question/type/randomsamatch/question.php [new file with mode: 0644]
question/type/randomsamatch/questiontype.php
question/type/randomsamatch/renderer.php [new file with mode: 0644]
question/type/randomsamatch/tests/helper.php [new file with mode: 0644]
question/type/randomsamatch/tests/question_test.php [new file with mode: 0644]
question/type/randomsamatch/tests/upgradelibnewqe_test.php [new file with mode: 0644]
question/type/randomsamatch/tests/walkthrough_test.php [new file with mode: 0644]
question/type/randomsamatch/version.php
question/type/shortanswer/tests/upgradelibnewqe_test.php
question/type/truefalse/tests/upgradelibnewqe_test.php
question/type/upgrade.txt
question/upgrade.txt
question/yui/build/moodle-question-preview/moodle-question-preview-debug.js [new file with mode: 0644]
question/yui/build/moodle-question-preview/moodle-question-preview-min.js [new file with mode: 0644]
question/yui/build/moodle-question-preview/moodle-question-preview.js [new file with mode: 0644]
question/yui/src/preview/build.json [new file with mode: 0644]
question/yui/src/preview/js/preview.js [moved from question/preview.js with 63% similarity]
question/yui/src/preview/meta/preview.json [new file with mode: 0644]
rating/lib.php
report/loglive/index.php
report/participation/index.php
repository/filepicker.js
repository/tests/behat/cancel_add_file.feature
repository/tests/behat/create_folders.feature
repository/tests/behat/create_shortcut.feature
repository/tests/behat/delete_files.feature
repository/tests/behat/overwrite_file.feature
repository/tests/behat/zip_and_unzip.feature
repository/tests/repositorylib_test.php
theme/afterburner/config.php
theme/afterburner/db/upgrade.php
theme/afterburner/lang/en/theme_afterburner.php
theme/afterburner/layout/default.php
theme/afterburner/layout/embedded.php
theme/afterburner/lib.php
theme/afterburner/renderers.php
theme/afterburner/settings.php
theme/afterburner/style/afterburner_dock.css
theme/afterburner/version.php
theme/anomaly/config.php
theme/anomaly/lang/en/theme_anomaly.php
theme/anomaly/layout/frontpage.php
theme/anomaly/layout/general.php
theme/anomaly/layout/report.php
theme/anomaly/lib.php
theme/anomaly/renderers.php
theme/anomaly/settings.php
theme/anomaly/style/general.css
theme/anomaly/version.php
theme/arialist/layout/frontpage.php
theme/arialist/layout/general.php
theme/arialist/layout/report.php
theme/arialist/lib.php
theme/arialist/settings.php
theme/base/cli/svgtool.php
theme/base/config.php
theme/base/lang/en/theme_base.php
theme/base/layout/embedded.php
theme/base/layout/frontpage.php
theme/base/layout/general.php
theme/base/layout/report.php
theme/base/style/blocks.css
theme/base/style/core.css
theme/base/style/course.css
theme/base/style/dock.css
theme/base/version.php
theme/binarius/config.php
theme/binarius/layout/frontpage.php
theme/binarius/layout/general.php
theme/binarius/layout/report.php
theme/binarius/version.php
theme/bootstrapbase/config.php
theme/bootstrapbase/javascript/dock.js [new file with mode: 0644]
theme/bootstrapbase/lang/en/theme_bootstrapbase.php
theme/bootstrapbase/layout/columns1.php
theme/bootstrapbase/layout/columns2.php
theme/bootstrapbase/layout/columns3.php
theme/bootstrapbase/layout/embedded.php
theme/bootstrapbase/layout/maintenance.php
theme/bootstrapbase/layout/popup.php
theme/bootstrapbase/layout/secure.php
theme/bootstrapbase/less/README
theme/bootstrapbase/less/moodle.less
theme/bootstrapbase/less/moodle/blocks.less
theme/bootstrapbase/less/moodle/core.less
theme/bootstrapbase/less/moodle/course.less
theme/bootstrapbase/less/moodle/dock.less [new file with mode: 0644]
theme/bootstrapbase/less/moodle/modules.less
theme/bootstrapbase/less/moodle/responsive.less
theme/bootstrapbase/less/moodle/undo.less
theme/bootstrapbase/less/moodle/user.less
theme/bootstrapbase/renderers/core_renderer.php
theme/bootstrapbase/style/moodle.css
theme/boxxie/layout/embedded.php
theme/boxxie/layout/frontpage.php
theme/boxxie/layout/general.php
theme/boxxie/style/core.css
theme/brick/layout/frontpage.php
theme/brick/layout/general.php
theme/brick/lib.php
theme/brick/settings.php
theme/canvas/lang/en/theme_canvas.php
theme/canvas/layout/embedded.php
theme/canvas/layout/frontpage.php
theme/canvas/layout/general.php
theme/canvas/layout/report.php
theme/canvas/style/core.css
theme/clean/config.php
theme/clean/layout/columns1.php
theme/clean/layout/columns2.php
theme/clean/layout/columns3.php
theme/clean/layout/embedded.php
theme/clean/layout/maintenance.php
theme/clean/layout/secure.php
theme/formal_white/style/formal_white.css
theme/formfactor/layout/embedded.php
theme/formfactor/layout/frontpage.php
theme/formfactor/layout/general.php
theme/formfactor/style/mods.css
theme/formfactor/version.php
theme/fusion/layout/frontpage.php
theme/fusion/layout/general.php
theme/fusion/lib.php
theme/fusion/settings.php
theme/leatherbound/layout/frontpage.php
theme/leatherbound/layout/general.php
theme/leatherbound/layout/report.php
theme/magazine/config.php
theme/magazine/lang/en/theme_magazine.php
theme/magazine/layout/embedded.php
theme/magazine/layout/frontpage.php
theme/magazine/layout/general.php
theme/magazine/lib.php
theme/magazine/settings.php
theme/magazine/style/core.css
theme/magazine/version.php
theme/nimble/layout/frontpage.php
theme/nimble/layout/general.php
theme/nimble/lib.php
theme/nimble/settings.php
theme/nonzero/layout/frontpage.php
theme/nonzero/layout/general.php
theme/nonzero/lib.php
theme/nonzero/settings.php
theme/overlay/layout/frontpage.php
theme/overlay/layout/general.php
theme/overlay/lib.php
theme/overlay/settings.php
theme/overlay/version.php
theme/serenity/config.php
theme/serenity/lang/en/theme_serenity.php
theme/sky_high/config.php
theme/sky_high/lang/en/theme_sky_high.php
theme/sky_high/layout/frontpage.php
theme/sky_high/layout/general.php
theme/sky_high/layout/report.php
theme/sky_high/lib.php
theme/sky_high/settings.php
theme/sky_high/version.php
theme/splash/layout/embedded.php
theme/splash/layout/report.php
theme/standard/style/admin.css
theme/standard/style/core.css
theme/standard/style/grade.css
theme/standard/style/modules.css
theme/standard/style/question.css
theme/standardold/layout/embedded.php
theme/standardold/layout/frontpage.php
theme/standardold/layout/general.php
theme/upgrade.txt
theme/yui_combo.php
theme/yui_image.php
version.php
webservice/tests/events_test.php

diff --git a/admin/cli/backup.php b/admin/cli/backup.php
new file mode 100644 (file)
index 0000000..2770c03
--- /dev/null
@@ -0,0 +1,119 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * This script allows to do backup.
+ *
+ * @package    core
+ * @subpackage cli
+ * @copyright  2013 Lancaster University
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+define('CLI_SCRIPT', 1);
+
+require(dirname(dirname(dirname(__FILE__))).'/config.php');
+require_once($CFG->libdir.'/clilib.php');
+require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
+
+// Now get cli options.
+list($options, $unrecognized) = cli_get_params(array(
+    'courseid' => false,
+    'courseshortname' => '',
+    'destination' => '',
+    'help' => false,
+    ), array('h' => 'help'));
+
+if ($unrecognized) {
+    $unrecognized = implode("\n  ", $unrecognized);
+    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
+}
+
+if ($options['help'] || !($options['courseid'] || $options['courseshortname'])) {
+    $help = <<<EOL
+Perform backup of the given course.
+
+Options:
+--courseid=INTEGER          Course ID for backup.
+--courseshortname=STRING    Course shortname for backup.
+--destination=STRING        Path where to store backup file. If not set the backup
+                            will be stored within the course backup file area.
+-h, --help                  Print out this help.
+
+Example:
+\$sudo -u www-data /usr/bin/php admin/cli/backup.php --courseid=2 --destination=/moodle/backup/\n
+EOL;
+
+    echo $help;
+    die;
+}
+
+$admin = get_admin();
+if (!$admin) {
+    mtrace("Error: No admin account was found");
+    die;
+}
+
+// Do we need to store backup somewhere else?
+$dir = rtrim($options['destination'], '/');
+if (!empty($dir)) {
+    if (!file_exists($dir) || !is_dir($dir) || !is_writable($dir)) {
+        mtrace("Destination directory does not exists or not writable.");
+        die;
+    }
+}
+
+// Check that the course exists.
+if ($options['courseid']) {
+    $course = $DB->get_record('course', array('id' => $options['courseid']), '*', MUST_EXIST);
+} else if ($options['courseshortname']) {
+    $course = $DB->get_record('course', array('shortname' => $options['courseshortname']), '*', MUST_EXIST);
+}
+
+cli_heading('Performing backup...');
+$bc = new backup_controller(backup::TYPE_1COURSE, $course->id, backup::FORMAT_MOODLE,
+                            backup::INTERACTIVE_YES, backup::MODE_GENERAL, $admin->id);
+// Set the default filename.
+$format = $bc->get_format();
+$type = $bc->get_type();
+$id = $bc->get_id();
+$users = $bc->get_plan()->get_setting('users')->get_value();
+$anonymised = $bc->get_plan()->get_setting('anonymize')->get_value();
+$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $id, $users, $anonymised);
+$bc->get_plan()->get_setting('filename')->set_value($filename);
+
+// Execution.
+$bc->finish_ui();
+$bc->execute_plan();
+$results = $bc->get_results();
+$file = $results['backup_destination']; // May be empty if file already moved to target location.
+
+// Do we need to store backup somewhere else?
+if (!empty($dir)) {
+    if ($file) {
+        mtrace("Writing " . $dir.'/'.$filename);
+        if ($file->copy_content_to($dir.'/'.$filename)) {
+            $file->delete();
+            mtrace("Backup completed.");
+        } else {
+            mtrace("Destination directory does not exist or is not writable. Leaving the backup in the course backup file area.");
+        }
+    }
+} else {
+    mtrace("Backup completed, the new file is listed in the backup area of the given course");
+}
+$bc->destroy();
+exit(0);
\ No newline at end of file
index 4edfcd1..b1cfc26 100644 (file)
         </FEEDBACK>
       </PHP_SETTING>
     </PHP_SETTINGS>
+    <CUSTOM_CHECKS>
+      <CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
+        <FEEDBACK>
+          <ON_ERROR message="quizattemptsupgradedmessage" />
+        </FEEDBACK>
+      </CUSTOM_CHECK>
+    </CUSTOM_CHECKS>
   </MOODLE>
 </COMPATIBILITY_MATRIX>
index 2cf6f0f..1df0a09 100644 (file)
@@ -191,6 +191,9 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
     // "documentation" settingpage
     $temp = new admin_settingpage('documentation', new lang_string('moodledocs'));
     $temp->add(new admin_setting_configtext('docroot', new lang_string('docroot', 'admin'), new lang_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
+    $ltemp = array('' => get_string('forceno'));
+    $ltemp += get_string_manager()->get_list_of_translations(true);
+    $temp->add(new admin_setting_configselect('doclang', get_string('doclang', 'admin'), get_string('configdoclang', 'admin'), '', $ltemp));
     $temp->add(new admin_setting_configcheckbox('doctonewwindow', new lang_string('doctonewwindow', 'admin'), new lang_string('configdoctonewwindow', 'admin'), 0));
     $ADMIN->add('appearance', $temp);
 
@@ -217,7 +220,6 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
     $ADMIN->add('appearance', $temp);
 
     $temp = new admin_settingpage('ajax', new lang_string('ajaxuse'));
-    $temp->add(new admin_setting_configcheckbox('enableajax', new lang_string('enableajax', 'admin'), new lang_string('configenableajax', 'admin'), 1));
     $temp->add(new admin_setting_configcheckbox('useexternalyui', new lang_string('useexternalyui', 'admin'), new lang_string('configuseexternalyui', 'admin'), 0));
     $temp->add(new admin_setting_configcheckbox('yuicomboloading', new lang_string('yuicomboloading', 'admin'), new lang_string('configyuicomboloading', 'admin'), 1));
     $setting = new admin_setting_configcheckbox('cachejs', new lang_string('cachejs', 'admin'), new lang_string('cachejs_help', 'admin'), 1);
index d8b2b51..b07e92f 100644 (file)
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically.';
+$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically. Step definitions available for use in .feature files are listed below.';
 $string['allavailablesteps'] = 'All the available steps definitions';
+$string['errorbehatcommand'] = 'Error running behat CLI command. Try running "{$a} --help" manually from CLI to find out more about the problem.';
+$string['errorcomposer'] = 'Composer dependencies are not installed.';
+$string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
+$string['errorsetconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot need to be set in config.php.';
+$string['erroruniqueconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot values need to be different than $CFG->dataroot, $CFG->prefix, $CFG->wwwroot, $CFG->phpunit_dataroot and $CFG->phpunit_prefix values.';
 $string['giveninfo'] = 'Given. Processes to set up the environment';
 $string['infoheading'] = 'Info';
 $string['installinfo'] = 'Read {$a} for installation and tests execution info';
-$string['moreinfoin'] = 'More info in {$a}';
 $string['newstepsinfo'] = 'Read {$a} for info about how to add new steps definitions';
 $string['newtestsinfo'] = 'Read {$a} for info about how to write new tests';
 $string['nostepsdefinitions'] = 'There aren\'t steps definitions matching this filters';
 $string['pluginname'] = 'Acceptance testing';
-$string['runclitool'] = 'To list the steps definitions you need to run the Behat CLI tool to create the $CFG->behat_dataroot directory. Go to your moodle dirroot and run "{$a}"';
 $string['stepsdefinitionscomponent'] = 'Area';
 $string['stepsdefinitionscontains'] = 'Contains';
 $string['stepsdefinitionsfilters'] = 'Steps definitions';
@@ -41,6 +44,7 @@ $string['theninfo'] = 'Then. Checkings to ensure the outcomes are the expected o
 $string['unknownexceptioninfo'] = 'There was a problem with Selenium or your browser. Please ensure you are using the latest version of Selenium. Error:';
 $string['viewsteps'] = 'Filter';
 $string['wheninfo'] = 'When. Actions that provokes an event';
-$string['wrongbehatsetup'] = 'Something is wrong with behat setup, ensure:<ul>
-<li>You ran "php admin/tool/behat/cli/init.php" from your moodle root directory</li>
-<li>vendor/bin/behat file has execution permissions</li></ul>';
+$string['wrongbehatsetup'] = 'Something is wrong with the behat setup and so step definitions cannot be listed: <b>{$a->errormsg}</b><br/><br/>Please check:<ul>
+<li>$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot are set in config.php with different values from $CFG->dataroot, $CFG->prefix and $CFG->wwwroot.</li>
+<li>You ran "{$a->behatinit}" from your Moodle root directory.</li>
+<li>Dependencies are installed in vendor/ and {$a->behatcommand} file has execution permissions.</li></ul>';
index 324241b..cc5b4ab 100644 (file)
@@ -45,37 +45,7 @@ class tool_behat_renderer extends plugin_renderer_base {
      */
     public function render_stepsdefinitions($stepsdefinitions, $form) {
 
-        $title = get_string('pluginname', 'tool_behat');
-
-        // Header.
-        $html = $this->output->header();
-        $html .= $this->output->heading($title);
-
-        // Info.
-        $installurl = behat_command::DOCS_URL . '#Installation';
-        $installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
-        $writetestsurl = behat_command::DOCS_URL . '#Writting_features';
-        $writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
-        $writestepsurl = behat_command::DOCS_URL . '#Adding_steps_definitions';
-        $writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
-        $infos = array(
-            get_string('installinfo', 'tool_behat', $installlink),
-            get_string('newtestsinfo', 'tool_behat', $writetestslink),
-            get_string('newstepsinfo', 'tool_behat', $writestepslink)
-        );
-
-        // List of steps.
-        $html .= $this->output->box_start();
-        $html .= html_writer::tag('h1', get_string('infoheading', 'tool_behat'));
-        $html .= html_writer::tag('div', get_string('aim', 'tool_behat'));
-        $html .= html_writer::empty_tag('div');
-        $html .= html_writer::empty_tag('ul');
-        $html .= html_writer::empty_tag('li');
-        $html .= implode(html_writer::end_tag('li') . html_writer::empty_tag('li'), $infos);
-        $html .= html_writer::end_tag('li');
-        $html .= html_writer::end_tag('ul');
-        $html .= html_writer::end_tag('div');
-        $html .= $this->output->box_end();
+        $html = $this->generic_info();
 
         // Form.
         ob_start();
@@ -123,4 +93,75 @@ class tool_behat_renderer extends plugin_renderer_base {
 
         return $html;
     }
+
+    /**
+     * Renders an error message adding the generic info about the tool purpose and setup.
+     *
+     * @param string $msg The error message
+     * @return string HTML
+     */
+    public function render_error($msg) {
+
+        $html = $this->generic_info();
+
+        $a = new stdClass();
+        $a->errormsg = $msg;
+        $a->behatcommand = behat_command::get_behat_command();
+        $a->behatinit = 'php admin' . DIRECTORY_SEPARATOR . 'tool' . DIRECTORY_SEPARATOR .
+            'behat' . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'init.php';
+
+        $msg = get_string('wrongbehatsetup', 'tool_behat', $a);
+
+        // Error box including generic error string + specific error msg.
+        $html .= $this->output->box_start('box errorbox');
+        $html .= html_writer::tag('div', $msg);
+        $html .= $this->output->box_end();
+
+        $html .= $this->output->footer();
+
+        return $html;
+    }
+
+    /**
+     * Generic info about the tool.
+     *
+     * @return string
+     */
+    protected function generic_info() {
+
+        $title = get_string('pluginname', 'tool_behat');
+
+        // Header.
+        $html = $this->output->header();
+        $html .= $this->output->heading($title);
+
+        // Info.
+        $installurl = behat_command::DOCS_URL . '#Installation';
+        $installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
+        $writetestsurl = behat_command::DOCS_URL . '#Writting_features';
+        $writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
+        $writestepsurl = behat_command::DOCS_URL . '#Adding_steps_definitions';
+        $writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
+        $infos = array(
+            get_string('installinfo', 'tool_behat', $installlink),
+            get_string('newtestsinfo', 'tool_behat', $writetestslink),
+            get_string('newstepsinfo', 'tool_behat', $writestepslink)
+        );
+
+        // List of steps.
+        $html .= $this->output->box_start();
+        $html .= html_writer::tag('h1', get_string('infoheading', 'tool_behat'));
+        $html .= html_writer::tag('div', get_string('aim', 'tool_behat'));
+        $html .= html_writer::empty_tag('div');
+        $html .= html_writer::empty_tag('ul');
+        $html .= html_writer::empty_tag('li');
+        $html .= implode(html_writer::end_tag('li') . html_writer::empty_tag('li'), $infos);
+        $html .= html_writer::end_tag('li');
+        $html .= html_writer::end_tag('ul');
+        $html .= html_writer::end_tag('div');
+        $html .= $this->output->box_end();
+
+        return $html;
+    }
+
 }
index 12b96cd..223011a 100644 (file)
@@ -24,6 +24,6 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$plugin->version   = 2013110501;
+$plugin->version   = 2014012900;
 $plugin->requires  = 2013110500; // Requires Moodle 2.5.
 $plugin->component = 'tool_behat';
diff --git a/admin/tool/qeupgradehelper/README.txt b/admin/tool/qeupgradehelper/README.txt
deleted file mode 100644 (file)
index b9ce983..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-This plugin can help upgrade site with a large number of question attempts from
-Moodle 2.0 to 2.1.
-
-With a lot of question attempts, doing the whole conversion on upgrade is very
-slow. The plugin can help with that in various ways.
-
-
-1. It provides a report of how much data there is to upgrade.
-
-2. It can extract test-cases from the database. This can help you report bugs
-in the upgrade process to the developers.
-
-3. You can set up cron to complete the conversion of quiz attempts, if you have
-configured a partial upgrade.
-
-
-If this plugin is present during upgrade:
-
-4. then only a subset of attempts are upgraded. Read the instructions in the
-partialupgrade-example.php script.
-
-
-If this plugin is present in a Moodle 2.1 site after upgrade:
-
-5. If not all attempts have been upgraded in a 2.1 site, then this plugin
-displays a list of how many quizzes still need to be upgraded
-
-6. ... and can be used to complete the upgrade manually ...
-
-7. or this plugin has a cron script that can be used to finish the upgrade
-automatically after the main upgrade has finished.
-
-8. It can also reset any attempts that were upgraded (provided they have not
-subsequently been modified) so you can re-upgrade them. This may allow you to
-recover from a buggy upgrade.
-
-9. Finally, you can still use the extract test-cases script to help report bugs.
-
-
-Manual upgrades can be processed via the web interface or the command line tool
-cliupgrade.php. To run cliupgrade.php, use a command similar to:
-sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cli/convert.php -h
-The -h flag will show the options for running the tool.
\ No newline at end of file
diff --git a/admin/tool/qeupgradehelper/afterupgradelib.php b/admin/tool/qeupgradehelper/afterupgradelib.php
deleted file mode 100644 (file)
index 5aeb316..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-
-/**
- * Question engine upgrade helper library code that relies on other parts of the
- * new question engine code.
- *
- * @package    tool
- * @subpackage qeupgradehelper
- * @copyright  2010 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-defined('MOODLE_INTERNAL') || die;
-
-require_once($CFG->dirroot . '/question/engine/upgrade/upgradelib.php');
-
-
-class tool_qeupgradehelper_attempt_upgrader extends question_engine_attempt_upgrader {
-    public $quizid;
-    public $attemptsdone = 0;
-    public $attemptstodo;
-
-    public function __construct($quizid, $attemptstodo) {
-        $this->quizid = $quizid;
-        $this->attemptstodo = $attemptstodo;
-    }
-
-    protected function get_quiz_ids() {
-        return array($this->quizid);
-    }
-
-    protected function print_progress($done, $outof, $quizid) {
-    }
-
-    protected function convert_quiz_attempt($quiz, $attempt, $questionsessionsrs, $questionsstatesrs) {
-        $this->attemptsdone += 1;
-        return parent::convert_quiz_attempt($quiz, $attempt, $questionsessionsrs, $questionsstatesrs);
-    }
-
-    protected function reset_progress($done, $outof) {
-        if (is_null($this->progressbar)) {
-            $this->progressbar = new progress_bar('qe2reset');
-            $this->progressbar->create();
-        }
-
-        gc_collect_cycles(); // This was really helpful in PHP 5.2. Perhaps remove.
-        $a = new stdClass();
-        $a->done = $done;
-        $a->outof = $outof;
-        $this->progressbar->update($done, $outof,
-                get_string('resettingquizattemptsprogress', 'tool_qeupgradehelper', $a));
-    }
-
-    protected function get_resettable_attempts($quiz) {
-        global $DB;
-        return $DB->get_records_sql("
-                SELECT
-                    quiza.*
-
-                FROM {quiz_attempts} quiza
-                LEFT JOIN (
-                    SELECT attempt, MAX(timestamp) AS time
-                    FROM {question_states}
-                    GROUP BY attempt
-                ) AS oldtimemodified ON oldtimemodified.attempt = quiza.uniqueid
-                LEFT JOIN (
-                    SELECT qa.questionusageid, MAX(qas.timecreated) AS time
-                    FROM {question_attempts} qa
-                    JOIN {question_attempt_steps} qas ON qas.questionattemptid = qa.id
-                    GROUP BY qa.questionusageid
-                ) AS newtimemodified ON newtimemodified.questionusageid = quiza.uniqueid
-
-                WHERE quiza.preview = 0
-                  AND quiza.needsupgradetonewqe = 0
-                  AND (newtimemodified.time IS NULL OR oldtimemodified.time >= newtimemodified.time)
-                  AND quiza.quiz = :quizid", array('quizid' => $quiz->id));
-    }
-
-    public function reset_all_resettable_attempts() {
-        global $DB;
-
-        $transaction = $DB->start_delegated_transaction();
-
-        $quiz = $DB->get_record('quiz', array('id' => $this->quizid));
-        $attempts = $this->get_resettable_attempts($quiz);
-        foreach ($attempts as $attempt) {
-            $this->reset_attempt($quiz, $attempt);
-        }
-
-        $transaction->allow_commit();
-    }
-
-    protected function reset_attempt($quiz, $attempt) {
-        global $DB;
-
-        $this->attemptsdone += 1;
-        $this->reset_progress($this->attemptsdone, $this->attemptstodo);
-
-        $questionids = explode(',', $quiz->questions);
-        $slottoquestionid = array(0 => 0);
-        foreach ($questionids as $questionid) {
-            if ($questionid) {
-                $slottoquestionid[] = $questionid;
-            }
-        }
-
-        $slotlayout = explode(',', $attempt->layout);
-        $oldlayout = array();
-        $ok = true;
-        foreach ($slotlayout as $slot) {
-            if (array_key_exists($slot, $slottoquestionid)) {
-                $oldlayout[] = $slottoquestionid[$slot];
-            } else if (in_array($slot, $questionids)) {
-                // OK there was probably a problem during the original upgrade.
-                $oldlayout[] = $slot;
-            } else {
-                $ok = false;
-                break;
-            }
-        }
-
-        if ($ok) {
-            $layout = implode(',', $oldlayout);
-        } else {
-            $layout = $attempt->layout;
-        }
-
-        $DB->delete_records_select('question_attempt_step_data', "attemptstepid IN (
-                SELECT qas.id
-                FROM {question_attempts} qa
-                JOIN {question_attempt_steps} qas ON qas.questionattemptid = qa.id
-                WHERE questionusageid = :uniqueid)",
-                array('uniqueid' => $attempt->uniqueid));
-        $DB->delete_records_select('question_attempt_steps', "questionattemptid IN (
-                SELECT qa.id
-                FROM {question_attempts} qa
-                WHERE questionusageid = :uniqueid)",
-                array('uniqueid' => $attempt->uniqueid));
-        $DB->delete_records('question_attempts',
-                array('questionusageid' => $attempt->uniqueid));
-
-        $DB->set_field('question_usages', 'preferredbehaviour', 'to_be_set_later',
-                array('id' => $attempt->uniqueid));
-        $DB->set_field('quiz_attempts', 'layout', $layout,
-                array('uniqueid' => $attempt->uniqueid));
-        $DB->set_field('quiz_attempts', 'needsupgradetonewqe', 1,
-                array('uniqueid' => $attempt->uniqueid));
-    }
-}
diff --git a/admin/tool/qeupgradehelper/cli/convert.php b/admin/tool/qeupgradehelper/cli/convert.php
deleted file mode 100644 (file)
index 779442e..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Script to allow upgrading of quizzes with attempts that were previously
- * skipped.
- *
- * @package    tool_qeupgradehelper
- * @copyright  2012 Eric Merrill, Oakland Unversity
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-define('CLI_SCRIPT', true);
-
-require_once(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/config.php');
-require_once(dirname(dirname(__FILE__)) . '/locallib.php');
-require_once(dirname(dirname(__FILE__)) . '/lib.php');
-require_once($CFG->libdir.'/clilib.php');      // CLI only functions.
-
-
-// Now get cli options.
-list($options, $unrecognized) = cli_get_params(array('quiz'=>false, 'timelimit'=>false, 'countlimit'=>false, 'help'=>false),
-                                               array('c'=>'countlimit', 't'=>'timelimit', 'h'=>'help'));
-
-if ($unrecognized) {
-    $unrecognized = implode("\n  ", $unrecognized);
-    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
-}
-
-
-if ($options['help']) {
-    $help =
-"Question engine upgrade helper CLI tool.
-Will upgrade all remaining question attempts if no options are specified.
-
-Options:
--c, --countlimit=<n>    Process n number of quizzes then exit
--t, --timelimit=<n>     Process quizzes for n number of seconds, then exit. A quiz
-                        currently in progress will not be interrupted.
---quiz=<quizid>         Process quiz quizid only
--h, --help              Print out this help
-
-countlimit and timelimit can be used together. First one to trigger will stop execution.
-
-Example:
-\$sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cliupgrade.php
-";
-
-    echo $help;
-    die;
-}
-
-
-
-
-if (!tool_qeupgradehelper_is_upgraded()) {
-    mtrace('qeupgradehelper: site not yet upgraded. Doing nothing.');
-    return;
-}
-
-require_once(dirname(dirname(__FILE__)) . '/afterupgradelib.php');
-
-
-$starttime = time();
-
-// Setup the stop time.
-if ($options['timelimit']) {
-    $stoptime = time() + $options['timelimit'];
-} else {
-    $stoptime = false;
-}
-
-// If we are doing a quiz id, limit to one.
-if ($options['quiz']) {
-    $options['countlimit'] = 1;
-}
-
-$count = 0;
-
-
-mtrace('qeupgradehelper: processing ...');
-
-/* This while statement does a few things
- * Basically if an option is set to false, then that subsection will return
- * true, and will short circuit the test condition for that option, and always
- * being true. Both options are anded together, so either one can trigger to stop.
- */
-while ((!$stoptime || (time() < $stoptime)) && (!$options['countlimit'] || ($count < $options['countlimit']))) {
-    if ($options['quiz']) {
-        $quizid = $options['quiz'];
-    } else {
-        $quiz = tool_qeupgradehelper_get_quiz_for_upgrade();
-        if (!$quiz) {
-            mtrace('qeupgradehelper: No more quizzes to process.');
-            break; // No more to do.
-        }
-
-        $quizid = $quiz->id;
-    }
-    $quizsummary = tool_qeupgradehelper_get_quiz($quizid);
-    if ($quizsummary) {
-        mtrace('  starting upgrade of attempts at quiz ' . $quizid);
-        $upgrader = new tool_qeupgradehelper_attempt_upgrader(
-                $quizsummary->id, $quizsummary->numtoconvert);
-        $upgrader->convert_all_quiz_attempts();
-        mtrace('  upgrade of quiz ' . $quizid . ' complete.');
-    } else {
-        mtrace('quiz ' . $quizid . ' not found or already upgraded.');
-    }
-
-    $count++;
-}
-
-
-mtrace('qeupgradehelper: Done. Processed '.$count.' quizes in '.(time()-$starttime).' seconds');
-return;
diff --git a/admin/tool/qeupgradehelper/convertquiz.php b/admin/tool/qeupgradehelper/convertquiz.php
deleted file mode 100644 (file)
index d12fc99..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Script to upgrade the attempts at a particular quiz, after confirmation.
- *
- * @package    tool
- * @subpackage qeupgradehelper
- * @copyright  2010 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-
-require_once(dirname(__FILE__) . '/../../../config.php');
-require_once(dirname(__FILE__) . '/locallib.php');
-require_once(dirname(__FILE__) . '/afterupgradelib.php');
-require_once($CFG->libdir . '/adminlib.php');
-
-$quizid = required_param('quizid', PARAM_INT);
-$confirmed = optional_param('confirmed', false, PARAM_BOOL);
-
-require_login();
-require_capability('moodle/site:config', context_system::instance());
-tool_qeupgradehelper_require_upgraded();
-
-admin_externalpage_setup('qeupgradehelper', '', array(),
-        tool_qeupgradehelper_url('convertquiz', array('quizid' => $quizid)));
-$PAGE->navbar->add(get_string('listtodo', 'tool_qeupgradehelper'),
-        tool_qeupgradehelper_url('listtodo'));
-$PAGE->navbar->add(get_string('convertattempts', 'tool_qeupgradehelper'));
-
-$renderer = $PAGE->get_renderer('tool_qeupgradehelper');
-
-$quizsummary = tool_qeupgradehelper_get_quiz($quizid);
-if (!$quizsummary) {
-    print_error('invalidquizid', 'tool_qeupgradehelper',
-            tool_qeupgradehelper_url('listtodo'));
-}
-
-$quizsummary->name = format_string($quizsummary->name);
-
-if ($confirmed && data_submitted() && confirm_sesskey()) {
-    // Actually do the conversion.
-    echo $renderer->header();
-    echo $renderer->heading(get_string(
-            'upgradingquizattempts', 'tool_qeupgradehelper', $quizsummary));
-
-    $upgrader = new tool_qeupgradehelper_attempt_upgrader(
-            $quizsummary->id, $quizsummary->numtoconvert);
-    $upgrader->convert_all_quiz_attempts();
-
-    echo $renderer->heading(get_string('conversioncomplete', 'tool_qeupgradehelper'));
-    echo $renderer->end_of_page_link(
-            new moodle_url('/mod/quiz/report.php', array('q' => $quizsummary->id)),
-            get_string('gotoquizreport', 'tool_qeupgradehelper'));
-    echo $renderer->end_of_page_link(tool_qeupgradehelper_url('listtodo'),
-            get_string('listtodo', 'tool_qeupgradehelper'));
-
-    echo $renderer->footer();
-    exit;
-}
-
-echo $renderer->convert_quiz_are_you_sure($quizsummary);
diff --git a/admin/tool/qeupgradehelper/cronsetup.php b/admin/tool/qeupgradehelper/cronsetup.php
deleted file mode 100644 (file)
index 2523ee5..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Script to set up cron to complete the upgrade automatically.
- *
- * @package    tool
- * @subpackage qeupgradehelper
- * @copyright  2010 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-
-require_once(dirname(__FILE__) . '/../../../config.php');
-require_once(dirname(__FILE__) . '/locallib.php');
-require_once(dirname(__FILE__) . '/cronsetup_form.php');
-require_once($CFG->libdir . '/adminlib.php');
-
-require_login();
-require_capability('moodle/site:config', context_system::instance());
-
-admin_externalpage_setup('qeupgradehelper', '', array(),
-        tool_qeupgradehelper_url('cronsetup'));
-$PAGE->navbar->add(get_string('cronsetup', 'tool_qeupgradehelper'));
-
-$renderer = $PAGE->get_renderer('tool_qeupgradehelper');
-
-$form = new tool_qeupgradehelper_cron_setup_form(
-        new moodle_url('/admin/tool/qeupgradehelper/cronsetup.php'));
-$form->set_data(get_config('tool_qeupgradehelper'));
-
-if ($form->is_cancelled()) {
-    redirect(tool_qeupgradehelper_url('index'));
-
-} else if ($fromform = $form->get_data()) {
-    if ($fromform->cronenabled) {
-        set_config('cronenabled', $fromform->cronenabled, 'tool_qeupgradehelper');
-        set_config('starthour', $fromform->starthour, 'tool_qeupgradehelper');
-        set_config('stophour', $fromform->stophour, 'tool_qeupgradehelper');
-        set_config('procesingtime', $fromform->procesingtime, 'tool_qeupgradehelper');
-
-    } else {
-        unset_config('cronenabled', 'tool_qeupgradehelper');
-        unset_config('starthour', 'tool_qeupgradehelper');
-        unset_config('stophour', 'tool_qeupgradehelper');
-        unset_config('procesingtime', 'tool_qeupgradehelper');
-    }
-    redirect(tool_qeupgradehelper_url('index'));
-
-}
-
-echo $renderer->header();
-echo $renderer->heading(get_string('cronsetup', 'tool_qeupgradehelper'));
-echo $renderer->box(get_string('croninstructions', 'tool_qeupgradehelper'));
-$form->display();
-echo $renderer->footer();
diff --git a/admin/tool/qeupgradehelper/cronsetup_form.php b/admin/tool/qeupgradehelper/cronsetup_form.php
deleted file mode 100644 (file)
index 60473f5..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Settings form for cronsetup.php.
- *
- * @package    tool
- * @subpackage qeupgradehelper
- * @copyright  2011 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-
-defined('MOODLE_INTERNAL') || die();
-
-require_once($CFG->libdir . '/formslib.php');
-
-
-/**
- * Cron setup form.
- * @copyright  2011 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-class tool_qeupgradehelper_cron_setup_form extends moodleform {
-    public function definition() {
-        $mform = $this->_form;
-
-        $mform->addElement('selectyesno', 'cronenabled',
-                get_string('cronenabled', 'tool_qeupgradehelper'));
-        $mform->setType('cronenabled', PARAM_BOOL);
-
-        $mform->addElement('select', 'starthour',
-                get_string('cronstarthour', 'tool_qeupgradehelper'), range(0, 23));
-        $mform->setType('starthour', PARAM_INT);
-
-        $mform->addElement('select', 'stophour',
-                get_string('cronstophour', 'tool_qeupgradehelper'),
-                array_combine(range(1, 24), range(1, 24)));
-        $mform->setType('stophour', PARAM_INT);
-        $mform->setDefault('stophour', 24);
-
-        $mform->addElement('duration', 'procesingtime',
-                get_string('cronprocesingtime', 'tool_qeupgradehelper'));
-        $mform->setType('procesingtime', PARAM_INT);
-        $mform->setDefault('procesingtime', 60);
-
-        $mform->disabledIf('starthour', 'cronenabled', 'eq', 0);
-        $mform->disabledIf('stophour', 'cronenabled', 'eq', 0);
-        $mform->disabledIf('procesingtime', 'cronenabled', 'eq', 0);
-
-        $this->add_action_buttons();
-    }
-}
diff --git a/admin/tool/qeupgradehelper/extracttestcase.php b/admin/tool/qeupgradehelper/extracttestcase.php
deleted file mode 100644 (file)
index 902418f..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Script to help create unit tests for the upgrade using example data from the
- * database.
- *
- * (The theory is that if the upgrade dies with an error, you can restore the
- * database from backup, and then use this script to extract the problem case
- * as a unit test. Then you can fix that unit tests. Then you can repeat the upgrade.)
- *
- * @package    tool
- * @subpackage qeupgradehelper
- * @copyright  2009 The Open University
- * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-
-require_once(dirname(__FILE__) . '/../../../config.php');
-require_once(dirname(__FILE__) . '/locallib.php');
-require_once(dirname(__FILE__) . '/extracttestcase_form.php');
-require_once($CFG->libdir . '/questionlib.php');
-require_once($CFG->libdir . '/adminlib.php');
-
-
-require_login();
-require_capability('moodle/site:config', context_system::instance());
-
-admin_externalpage_setup('qeupgradehelper', '', array(),
-        tool_qeupgradehelper_url('extracttestcase'));
-$PAGE->navbar->add(get_string('extracttestcase', 'tool_qeupgradehelper'));
-
-$renderer = $PAGE->get_renderer('tool_qeupgradehelper');
-
-$mform =