16 Commits

Author SHA1 Message Date
thepurpleblob
0ae982231f Import/export changed so that available formats are automatically detected.
Classes now have discrete names and methods to identify import/export
capability added. Detecting function factored out into locallib.php
2005-04-20 09:08:25 +00:00
thepurpleblob
c9a9705ef1 Now only displays available export formats. List is now hard-coded in this file. 2005-04-19 15:26:37 +00:00
thepurpleblob
f85601d1b3 Export checks that the course files area is created (and creates it if not!) 2005-04-19 12:27:56 +00:00
thepurpleblob
c4aa4e8ff6 Added direct link to download exported file rather than having
to search for it.
2005-04-13 10:32:45 +00:00
gustav_delius
ee9eb2c74f Applied patch supplied by Brian King to remove the non-functional category selection menu from the export form. Closing bug 1945. 2005-03-14 07:56:45 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
6f7970138a Taken out some $THEME 2005-02-05 17:28:06 +00:00
gustav_delius
76cacec819 split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle. 2005-01-08 20:06:00 +00:00
moodler
d030268d68 Merged pathname checks from stable 2004-09-29 06:52:24 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
moodler
49d74ec0ba Tidying up Howard's wierd indenting. ;-) 2004-08-23 16:46:50 +00:00
moodler
4af0e604db Straightened up a button 2004-08-23 16:36:04 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
thepurpleblob
3cb21c9388 fixed bug that must have crept in during recent refactor. $course not being passed
to export format object.
export file extension can now be selected by overriding method in format.php
2004-08-06 11:11:05 +00:00
thepurpleblob
c040a9a2ff New file for exporting quizzes 2004-06-17 16:18:21 +00:00