moodler
aac94fd0cc
New field on course_modules called "indent" ... this is an integer
...
that tells us how far to indent the activity when it is displayed.
This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc
Backup/restore is updated as well.
There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
moodler
eb06f902f4
Undoing one of the less then brilliant changes I did earlier today to Eloy's code
2003-08-25 15:47:37 +00:00
moodler
830ce8241b
Some fixes for robustness (make sure variables exist before using them
...
because it flags errors when in debug mode).
Also, when specifying array values by name use quotes around the name
eg $array['value'] instead of $array[value]
Finally, I changed the way user restoring works (slightly). Before, if a
restored user was found to be a course creator or an admin, then this
status was restored. I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.
If this broke anything else let me know!
2003-08-25 01:44:01 +00:00
stronk7
300ae26c2d
Ooops I commited some debug source code in previous
...
versions. Going back. Sorry.
2003-08-23 17:40:27 +00:00
stronk7
41923e7511
Solved one problem when copying empty directories.
2003-08-23 17:33:34 +00:00
moodler
fff79722e5
A new course field called "showgrades" which allows the teacher to
...
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
stronk7
93e9a4c9cd
Some minor changes to restore scales in existing course
...
(avoid some duplications)
2003-08-18 13:07:02 +00:00
stronk7
42f1ff47b4
Scales are now supported in backup/restore.
...
Updated version to 0.8.8 alpha. Please test.
2003-08-18 00:00:22 +00:00
stronk7
35a14ba021
Now editall and timemodified are in
...
backup/restore process
2003-08-16 11:31:32 +00:00
moodler
7140a97ae3
Missing string, bug in call to get_string
2003-08-09 12:40:08 +00:00
stronk7
642ac84855
Added suport to new restoreto options
2003-08-02 23:37:41 +00:00
stronk7
d37ca7c7f8
Chanfed to locate the pclzip properly.
2003-08-01 23:36:07 +00:00
moodler
9c1ae5ae32
Removed $moodle_home and $mods_home references.
...
Also removed direct references to $backup_version and $backup_release
backup.php now accepts teachers of their own course
2003-08-01 14:34:11 +00:00
stronk7
2b96840769
Variables passed by reference warning is out !!
2003-07-31 16:44:52 +00:00
stronk7
92ffd629b2
Typo in course STARTDATE
2003-07-27 21:29:22 +00:00
moodler
d4f2e3fb55
Backup the new course->visible field
2003-07-21 07:35:58 +00:00
stronk7
04ab6cabc6
Some debug info commented
2003-07-07 19:20:52 +00:00
stronk7
ca5c2e1d3c
Now xmlize is invoked with XML_OPTION_SKIP_WHITE = 0 to
...
avoid \n skipping.
2003-07-05 22:44:29 +00:00
stronk7
ad80e394a0
Some comments and debug
2003-07-03 23:18:13 +00:00
stronk7
56f56ca0b2
Now categories and questions are recovered completely (STEP1)
2003-06-28 23:18:37 +00:00
stronk7
4912fae11b
Minor change to avoid timeouts copying user files
...
and course files.
2003-06-21 22:37:57 +00:00
stronk7
af9cd9552e
Changes in:
...
- Saving temp data to fs, instead of db
(mysql limit bug OUT)
- Modified clean directories (moodle standard delete dir
function seems to work wrong with large dirs
- Send info to browser continuosly to avoid timeouts.
- Increase php execution time limit
- More checks.
- Restore into existing course now works fine
- Create course_dir if it doesn't exist in the final step
of backup.
2003-06-20 19:42:20 +00:00
stronk7
c05d9c3ee8
Bug solved restoring in existing course.
2003-06-12 22:30:20 +00:00
stronk7
13e1a20fe1
Some improvements and tons of flushes !!
2003-06-12 17:38:36 +00:00
stronk7
d223ada029
Need to addslashes before put summary section data to db !!!
...
Now restoring sections is working.
User restoring failed !! -> Too much records !!
2003-06-10 17:27:08 +00:00
stronk7
f28aefbe4f
Little bug when renaming existent courses...
2003-06-03 16:32:38 +00:00
stronk7
5146bf9f54
Now readjusting course_modules instance and course modinfo
...
os implemented and working
2003-05-31 15:21:39 +00:00
stronk7
04b353e4d6
Return info to know what modules process...
2003-05-30 22:55:40 +00:00
stronk7
22c5d5271a
Only save to backup_ids restoreable modules.
2003-05-30 21:56:08 +00:00
stronk7
e3df3ece17
Begin restoring mods. Now they are readed and saved to db
...
(backup_ids) in serialized form.
2003-05-30 21:32:04 +00:00
stronk7
64eed73fa2
Changed bahabior when restoring into a existing course
...
(don't create sections and assign to section 0 if original
section doesn't exist). Everything is saved in backup_ids
to use it when restoring modules.
2003-05-28 23:41:56 +00:00
stronk7
1bdeb2ca8e
Implemented copying course_files and user_files.
2003-05-28 19:43:11 +00:00
stronk7
4848d55a9e
Few changes to gather info to show in restore progress
...
(various user counts (existing, new,...)
2003-05-26 00:07:56 +00:00
stronk7
0be7c25ebe
Minor bug creating newid when restorinf users
2003-05-25 23:37:07 +00:00
stronk7
a2c7397c42
Restore into new course and existing course implemented.
...
Restore sections and mod implemented.
Restore users (all, course and none) implemented
2003-05-25 22:58:13 +00:00
stronk7
7ba7461530
Finished restoring course, course_sections and course_modules.
...
When ending the restore process, we've to update the instance
field of course_modules and the modinfo field of course. Now
we haven´t the necessary info to do that.
2003-05-24 00:27:45 +00:00
stronk7
76bf541df8
Course Header and Backup info is showed now !!
...
I'll start using sessions to mange all this data.
2003-05-18 15:51:20 +00:00
stronk7
fd43f7d026
Now course header is retrieved too !!
2003-05-17 17:34:30 +00:00
stronk7
ca2129424f
Reading more info...
2003-05-17 11:40:27 +00:00
stronk7
a4ad03f175
Debug a bit
2003-05-17 08:56:53 +00:00
stronk7
785ae439eb
Begin parsing xml data.
...
Info tags.
2003-05-16 23:57:35 +00:00
stronk7
b9846a9b9e
Copy, expand and do preliminary checks from backup file
2003-05-16 21:52:49 +00:00
stronk7
5aca97a20a
Reset to empty lib before start developing
2003-05-14 23:22:50 +00:00
stronk7
52376d940f
Now backuplib.php includes all the functions needed in backup, restorelib.php all
...
the functions needed in restore and lib.php the rest of common functions.
2003-05-14 22:09:30 +00:00