sam marshall
c290ac5510
MDL-39876 update_course_record function to update global COURSE
2013-08-15 11:31:21 +01:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Russell Smith
3e7e2ab2ee
MDL-40618 backup: centralize info field, use info in queries.
...
encode_backup_temp_info() and decode_backup_temp_info() have been
introduced to keep the info field encoding in one place.
Many locations used get_backup_ids_record() to obtain info, that
makes lots of calls to get_backup_ids_record() which can be slow.
We now complete all those inline by adding the info field to the query.
To reduce memory usage, all queries of that nature have been changed
to use get_recordset_*. gzcompress was introduced if available to minimize
traffic to/from the database and to decrease the memory required for caching.
The compression time is saved by the benefits in other places of having smaller data.
2013-07-23 19:50:53 +10:00
Petr Škoda
b0d1d941c9
MDL-40220 use new core_component::get_component_directory()
2013-07-16 22:42:37 +02:00
Petr Škoda
bd3b3bba9f
MDL-40220 use new core_component::get_plugin_list()
2013-07-16 22:36:11 +02:00
Petr Škoda
46f6f7f224
MDL-40220 use new core_component::get_plugin_types()
2013-07-16 22:31:48 +02:00
Eloy Lafuente (stronk7)
e780e5cb8f
Merge branch 'MDL-40112_master' of https://github.com/totara/openbadges
...
Conflicts:
lib/db/upgrade.php
version.php
2013-07-16 01:29:01 +02:00
Adrian Greeve
a327f25ef1
MDL-31776 - lib: Alternate name fields
...
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
Yuliya Bozhko
e50220f840
MDL-40112 badges: Drop unused image field from badge table
2013-07-05 09:18:59 +12:00
Damyon Wiese
74ed095606
MDL-39558 badges: Prevent backup of badges without user information
2013-07-03 10:52:50 +08:00
Yuliya Bozhko
bd0d2bdcc9
MDL-39558 badges: Add backup/restore of manually awarded badges
2013-07-03 09:36:45 +08:00
Yuliya Bozhko
2832093f53
MDL-39558 badges: Add backup/restore to course badges
2013-07-03 09:35:06 +08:00
Andrew Nicols
b1850c12c1
MDL-37761 Backup: Do not include files in backups when importing courses/activities
...
When we import courses or duplicate activities, the deduplicating nature of
the file_storage system means that we don't actually have to include the
real files in the backup - just their metadata from the file table.
The restoration process needs to know not to expect files from the backup
phase so a flag is set in moodle_backup metadata.
2013-06-18 07:52:04 +01:00
Dan Poltawski
664a1e2793
Merge branch 'w24_MDL-28394_m26_enrolrestore' of git://github.com/skodak/moodle
2013-06-10 12:16:37 +08:00
Sam Hemelryk
fb8010732e
Merge branch 'MDL-36090_log2' of git://github.com/andyjdavis/moodle
2013-06-10 12:31:03 +12:00
Petr Škoda
4b75f49a63
MDL-28394 fix enrolment method restore logic
...
This patch fixes:
* missing enrolment methods after 1.9 backup restore - defaults are added
* enrolment methods are restored only when users option is enabled
* manual enrolment override option is disabled if users not available
2013-06-07 10:02:59 +02:00
Marina Glancy
cdb6045d54
MDL-38773 Purge coursecat cache on course restore
2013-06-05 12:02:33 +10:00
Andrew Davis
afd2efc0e8
MDL-36090 core_grade: added logging of overriding of student grades
2013-06-05 08:51:53 +08:00
Maria Torres
f2dc4d24f9
MDL-39169: Now the question's tags are added in backup/restore options
2013-05-06 15:41:56 +01:00
Dan Poltawski
a7eac88f94
Merge branch 'MDL-39000-master' of git://github.com/sammarshallou/moodle
2013-04-15 08:29:56 +01:00
sam marshall
fba5cbd356
MDL-39000 Conditional activities: Section condition restore errors
2013-04-09 17:42:32 +01:00
Dan Poltawski
0fc2ab8047
Merge branch 'MDL-37676' of git://github.com/appalachianstate/moodle
2013-04-08 14:05:21 +08:00
Marina Glancy
d1f8c1bd62
MDL-38708 Added course overview files (most often images) to courses
2013-04-02 11:08:21 +11:00
Eric Merrill
c9deaa8e79
MDL-25631 backup Decoupling legacy files from course config settigs. If they are present, they will be restored.
2013-03-26 17:01:55 -04:00
Fred Woolard
05b733703c
MDL-37676 Use course grade category if mapping fails for manual grade items
2013-03-22 08:24:33 -04:00
Andrew Robert Nicols
5251450372
MDL-31390 Convert set_source_sql with order clauses to set_source_table
2013-03-01 11:29:01 +00:00
Sam Hemelryk
e17dbeeb1a
MDL-34398 groups: implemented caching of group information.
2013-01-17 09:24:58 +13:00
Dan Poltawski
d0827c938f
Merge branch 'wip-MDL-30998-master' of git://github.com/marinaglancy/moodle
2013-01-15 12:51:48 +08:00
Marina Glancy
fa4c60c1fe
MDL-30998: updated docblocks for backup of advanced grading
2013-01-14 15:14:54 +11:00
Adrian Greeve
51e8d287f9
MDL-30797 - backup groups: Added a parameter to the groups_assign_grouping function.
...
$timeadded has now been included so that the backup / restore functions can now use
this API rather than duplicating the code.
2013-01-14 10:24:37 +08:00
Adam Olley
fdcf4a5f37
MDL-30797 backup: Use correct API call for mapping groups to groupings on import/restore
2013-01-14 10:24:37 +08:00
Sam Hemelryk
dd89f61e68
Merge branch 'w51_MDL-29996_m25_oldfilters' of git://github.com/skodak/moodle
2013-01-07 15:22:37 +13:00
Jean-Philippe Gaudreau
924b8d7274
MDL-37161 Backup: Database error caused by grade book settings when importing or restoring a course
2013-01-04 09:59:59 -05:00
Petr Škoda
0662bd677c
MDL-29996 remove deprecated stuff from filter code
2012-12-30 17:02:18 +01:00
Dan Poltawski
06ae410844
Merge branch 'MDL-37078-master' of git://github.com/sammarshallou/moodle
2012-12-17 11:36:57 +08:00
sam marshall
79e9e6049b
MDL-37078: Restore - section restore fails with multiple availability conditions
2012-12-12 10:47:17 +00:00
Sam Hemelryk
6e68a3a93c
Merge branch 'MDL-36650' of git://github.com/timhunt/moodle
2012-12-11 16:11:13 +13:00
Sam Hemelryk
13980de16b
Merge branch 'MDL-33125' of git://github.com/aolley/moodle
2012-12-10 10:19:32 +13:00
Tim Hunt
c23513dbe4
MDL-36650 don't change question timecreated or timemodified on restore.
2012-11-30 15:57:51 +00:00
Frederic Massart
d9f95015f5
MDL-36777 usability: Theming fixes on backup steps
2012-11-30 16:53:39 +08:00
Adam Olley
8f27b77b26
MDL-33125: core_backup: Prevent import/activity duplication from duplicating manual grade items
2012-11-26 12:19:44 +10:30
Dan Poltawski
c796b506be
Merge branch 'MDL-33863' of git://github.com/timhunt/moodle
2012-11-20 16:15:16 +08:00
Jean-Michel Vedrine
334783a796
MDL-33863 question restore: better hint identification.
...
This is very similar to what MDL-30018 did for question_answers.
2012-11-19 23:27:44 +00:00
Dan Poltawski
81d7798996
Merge branch 'MDL-34520-master' of git://github.com/ankitagarwal/moodle
2012-11-14 09:55:51 +08:00
Dan Poltawski
20aea2ea0d
Merge branch 'MDL-17444_localPluginBackupRestoreMaster' of https://github.com/moodlerooms/moodle
2012-11-07 14:49:15 +08:00
Mark Nielsen
c7b05a1d1b
MDL-17444: Backup hooks for local plugin (CR)
...
Code review changes
* Fixed PHPDoc
* Fixed missing MOODLE_INTERNAL check
2012-11-06 15:37:08 -08:00
Sam Chaffee
a66e8bb3aa
MDL-17444: Backup hooks for local plugin
2012-11-06 10:49:41 -08:00
Marina Glancy
92d38668ac
MDL-35768 MDL-36017 code style corrections
2012-11-02 13:53:48 +08:00
Marina Glancy
b5cf83f080
MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options
...
- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
case instead of $course = $DB->get_record('course'); we use:
$course = course_get_format($courseorid)->get_course(); This way all format-specific options
are added to the $course object
2012-11-02 10:56:19 +08:00
Marina Glancy
d6cd57deb6
MDL-35768 Backup and restore of course format-specific options
2012-11-02 10:55:24 +08:00