26155 Commits

Author SHA1 Message Date
poltawski
2ee60b4944 MDL-9742 Replaced stray tabs with spaces 2007-05-08 16:11:58 +00:00
poltawski
e73457e4ba MDL-9742 Converting tabs to spaces 2007-05-08 15:44:37 +00:00
poltawski
a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +00:00
sam_marshall
3ef1be377b MDL-9741: Fixed broken link on editor help page 2007-05-08 14:57:37 +00:00
thepurpleblob
460135234c MDL-9700:
Added more comprehensive checks for missing fields not exported in
previous versions.
More could be done, but this covers the basics and works for 1.6 (and
probably 1.5) exports.
2007-05-08 14:24:13 +00:00
thepurpleblob
fe219f8d76 Merege from stable. New strings for xml import error messages. 2007-05-08 14:15:48 +00:00
csantossaenz
7de38ebfcd Fixed some sintactic errors in sequencinglib.php 2007-05-08 12:40:29 +00:00
poltawski
840b7addef Removing tabs and re-indenting as I seem to have vim misconfigured.. 2007-05-08 12:02:29 +00:00
poltawski
9c186e9ba1 add cvs id to file 2007-05-08 11:43:46 +00:00
toyomoyo
c10ddfb3c0 Adding gradebook base class and export plugins. Refactored from old gradebook. Untested code. 2007-05-08 08:59:41 +00:00
nicolasconnault
2c72af1f08 MDL-9506 Stuck on grade_category->generate_grades. I cannot figure out how to recursively generate raw grades for each category's associated grade_item based on that category's children categories and items. Heaps of other changes with this commit, including a new grade_object::update_from_db() method, which uses the state of the record in DB to update the current object with a matching id (useful when you insert an incomplete object in the DB and want to get the default values as set up in the DB). 2007-05-08 08:01:55 +00:00
csantossaenz
33cf55bf96 Changed Ojective Rollup Process 2007-05-08 07:38:11 +00:00
csantossaenz
0506995042 Added function to handle exceptions 2007-05-08 07:25:20 +00:00
nicolasconnault
0aa32279b7 MDL-9506 Issue 1: adjusting a gradeitem's value would result in a grade_final object with gradevalue assigned, even when a gradescale should have been assigned. Issue 2: double grade_final entries when calling grade_item->load_final() after grade_item->generate_final(). Issue 3: Calling grade_item->update_final_grade() without first calling grade_item->generate_final() would result in fatal error. generate_final() is now called if the raw and final arrays' sizes don't match. 2007-05-08 02:20:26 +00:00
nicolasconnault
3504e07b1d *** empty log message *** 2007-05-08 01:48:27 +00:00
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