26240 Commits

Author SHA1 Message Date
jamiesensei
85c375c3f8 added function callbacks for module specific controls to question bank. 2007-05-07 16:57:23 +00:00
jamiesensei
0de94538ee fixed links on edit icons so that they return to question bank page. 2007-05-07 15:38:02 +00:00
jamiesensei
7cd4fda6e7 changing param type for returnurl to PARAM_LOCALURL 2007-05-07 15:16:07 +00:00
csantossaenz
af8ed6dcba Added some manifest data to the scorm_scoes_data table 2007-05-07 12:55:31 +00:00
csantossaenz
1536b92d5f Added a function to control the rollup process and changed some stored data 2007-05-07 12:15:16 +00:00
poltawski
5c6f918fee MDL-9731 Adding admin setting for disableuserimages 2007-05-07 11:40:02 +00:00
poltawski
c3d1fbe943 MDL-9726 - fixed phpdoc comment from MartinD's commit 2007-05-07 08:34:08 +00:00
nicolasconnault
f151b07393 MDL-9506 Added category's associated grade_item object, and changed unit tests database data so that it creates its own test tables. 2007-05-07 07:33:11 +00:00
jamiesensei
64eeaf4753 removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params. 2007-05-07 07:13:14 +00:00
jamiesensei
f86c2c84b1 fixed error in import.php category object fetching logic 2007-05-07 07:08:41 +00:00
jamiesensei
561fe61df3 return to the proper page after editing a question in the question bank. 2007-05-07 06:35:33 +00:00
jamiesensei
d340fde6c4 oops. Accidentally committed a change in default no of category items displayed which I'd changed for debug purposes. Reverting change. 2007-05-07 05:57:49 +00:00
jamiesensei
986effb653 pass the category list page param from page to page in question bank editing pages. 2007-05-07 05:53:20 +00:00
jamiesensei
400edee1ec always make sure that page param is in the pageurl 2007-05-07 05:30:06 +00:00
jamiesensei
81be5cdec3 added argument to constructor to specify the name of the page parameter used to pass the page no of the list. Default to 'page' 2007-05-07 05:25:44 +00:00
jamiesensei
a4758a8632 require_login is in 'question_edit_setup' we don't need to call it again here. 2007-05-07 05:12:09 +00:00
toyomoyo
db76f84627 merged fix for MLD-9727, capability typo 2007-05-07 05:00:22 +00:00
jamiesensei
7bc26c8f6d changes to pass category id from page to page in question bank editing. 2007-05-07 04:55:55 +00:00
pichetp
eeea21878d adding calculated question import MDL-5650 2007-05-07 04:01:20 +00:00
toyomoyo
6ceebc1f32 merged fix for MDL-9656, blocks parents can be system context 2007-05-07 03:24:22 +00:00
moodler
6eaa3f09ce Merged changes for better performance in cases where there are lots of enrolment plugins MDL-9726 2007-05-07 03:10:22 +00:00
gbateson
f503b2e6b4 modified "hpNewFunction" to allow Rottmeier quizze (Find-It, Dropdown) s to run on Safari (Mac) 2007-05-07 02:49:56 +00:00
nicolasconnault
712d500777 MDL-9506 Removed implicit loading of associated objects from constructors (grade_item and grade_grades_raw) to avoid very large numbers of sql queries when only little data is required. The load_scale() method, for example, needs to be called explicitly. 2007-05-07 02:04:06 +00:00
mattc-catalyst
5416a9aa44 MDL-9617: Fixed bug in previous commits.
- warnings being displayed in developer mode.
- caused by patch from patch series not being applied.
2007-05-06 23:19:32 +00:00
poltawski
ddecb2c498 MDL-8917 - slasharguemtns description slightly incorrect 2007-05-06 10:28:29 +00:00
poltawski
253051dcdc MDL-8356 - fixed typo 2007-05-06 09:57:33 +00:00
poltawski
407380df45 MDL-8971 - fixed typo 2007-05-06 09:45:21 +00:00
martinlanghoff
0f7caaf84f get_my_courses() - ensure we have groupmode, groupmodeforce in $d_fields - calendar/lib.php counts on it 2007-05-06 05:37:28 +00:00
martinlanghoff
0a66585b3d get_my_courses() callers update - check of the $fields param - pass null instead
The default way to call get_my_courses() is now to pass null in the $fields
param to get the (cached copy) of the useful fields. Cuts down enormously
on DB traffic, memory footprint, and session size.
2007-05-06 05:32:40 +00:00
martinlanghoff
4dbca99edf get_my_courses() - added optimisation for guest login
- was causing very slow page generation
2007-05-06 05:28:39 +00:00
martinlanghoff
e4271d740c get_my_courses() - tighten default fields - faster, risky
This makes get_my_courses() faster/lighter in 2 ways

 - We fetch a ton less data from the DB
 - We store a tone less data in the Session

In a test environment, with a student enrolled in  3 _empty_ courses
(just created, empty modinfo, etc), this shaves 50% off the session
size on-disk.

The problem is callers that may be expecting a given field to appear by
default. Next step: walk all callers...
2007-05-06 05:27:31 +00:00
martinlanghoff
601edb900e get_my_courses() - skip checks if we know the user has moodle/site:doanything and we are observing $doanything
Author: Martin Langhoff <martin@catalyst.net.nz>
2007-05-06 05:26:59 +00:00
martinlanghoff
5970ccfbaf get_my_courses(): tighten cache scheme - part 2
the tighter cache was fragile as we always edit $field
2007-05-06 05:26:04 +00:00
martinlanghoff
c6325ef155 get_my_courses(): tighten cache scheme
This tightens the rather lax caching mechanism that
cached regardless of parameters.

Thanks to Matt Clarkson for the heads-up...
2007-05-06 05:22:03 +00:00
moodler
79a89e9bf2 Automatic installer.php lang files by installer_builder (20070506) 2007-05-06 04:50:49 +00:00
martinlanghoff
b8227b8827 calendar: fixed group event display when only one course being viewed
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:38:24 +00:00
martinlanghoff
6b4aeb314b calendar: bug fixed to previous commit (MDL-7416 MDL-9617)
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:37:38 +00:00
martinlanghoff
37d87d11f9 calendar: performance optimisations + behaviour fix (MDL-7416 MDL-9617)
With 2500 courses the calendar was causing around 15000 queries at login and 5000 on the home page.

- Replaced queries inside loops with single unlooped queries.
- Fixed calendar so that course events will show when the users role is assigned at a category level.
- Moved calendar_session_vars() function call out of calendar/lib.php (including a lib should not have side effects)

Author: Matt Clarkson - with some conflict resolution from MartinL
2007-05-06 04:28:11 +00:00
poltawski
f261e052f2 Fixed MDL-9639 and syntax error, merged from 18_STABLE 2007-05-05 15:16:39 +00:00
thepurpleblob
5931ea94a1 MDL-9675:
Default value added for 'answernumbering'. Default is 'abc'
2007-05-05 14:44:12 +00:00
ikawhero
2230cb9178 Call theme_setup() after change so new theme displays correctly 2007-05-05 07:43:08 +00:00
thepurpleblob
cdeabc0638 Fixed hard coded string 2007-05-04 14:31:56 +00:00
thepurpleblob
b0c1b3ad03 Fix a hard coded string 2007-05-04 14:10:56 +00:00
csantossaenz
a59b393433 Made some changes on scorm_seq_overall 2007-05-04 12:27:49 +00:00
csantossaenz
980c089bfa Fixed some problems with the variables stored in scorm_scoes_track and the last two functions have been commented and we are going to use scorm_seq_is() instead of them. 2007-05-04 11:17:15 +00:00
jamiesensei
36e298bc58 removed more session stuff from question list and category form in question bank display code 2007-05-04 10:46:33 +00:00
tjhunt
2c89cfb533 Matching qestion type was failing to correctly determine wheterh the student had changed their answer - further improvements. Merged from MOODLE_18_STABLE. 2007-05-04 10:04:20 +00:00
nicolasconnault
2b4f19a9ce MDL-9506 Fixed some small issues. 2007-05-04 09:04:40 +00:00
jamiesensei
9ab3847595 tightening up reg expressions used for submitted data a bit 2007-05-04 08:33:28 +00:00
jgutierr25
0c121d998a patch for bug when you connect from authentication block on main page 2007-05-04 08:06:40 +00:00