4838 Commits

Author SHA1 Message Date
mchurch
12c1f0abea Fixing update_group_button and update_groups_button. They were no longer calling valid URL's. 2007-06-25 20:50:17 +00:00
skodak
22e23c78a0 MDL-10251 finished hiding implementation for grades, items and categories + unit tests 2007-06-25 15:29:31 +00:00
sam_marshall
7470d6de7a MDL-10249 Created addonload JavaScript function that can be used to add onload handlers, instead of using <body onload> which breaks things. 2007-06-25 14:38:02 +00:00
skodak
79f2b1ef1c fixed locking problem in update_raw_grade() 2007-06-25 08:30:03 +00:00
skodak
f89526e044 fixed typo 2007-06-25 08:13:54 +00:00
skodak
93def7683e removing itemnumber generation for now 2007-06-25 08:01:04 +00:00
skodak
c4e4068fa2 moving event trigger from update_grade() to grade_item->update_raw_grade(); removing itemnumber generation for now 2007-06-25 07:56:25 +00:00
skodak
f92dcad81a MDL-10233 improved static factory methods of grade obejcts fetch() and fetch_all(); implemented default values of grade objects, fixed null values for some properties that are not required - unit tests included, tested with PHP4 and PHP5 2007-06-24 22:26:33 +00:00
skodak
772ddfbfce trailing whitespace cleanup in new grade libraries 2007-06-23 16:51:09 +00:00
skodak
61c33818d5 MDL-10231 merge grade_calculations and grade_items table + calculation improvements
MDL-10233 fixed grade_*::fetch() - does not modify $this anymore, we can now use it from normal methods to fetch other objects of the same class.
2007-06-23 16:33:17 +00:00
urs_hunkler
d0c92410ef Add an option $CFG->CSSEdit or $THEME->CSSEdit to Moodle. If one of both is set to true, Moodle does not write all CSS code in one single CSS file but adds CSS @include to the theme CSS file to load all single CSS files. These single CSS files can then be interactively edited and saved with CSSEdit. It's like Firebug with direct saving your changes. 2007-06-23 12:21:59 +00:00
skodak
2e53372c37 MDL-10226 regrading of final grades improved, calculation cleanup before MDL-10231 2007-06-22 18:33:32 +00:00
toyomoyo
2f2d4fb53f adding limits to get_role_users() to enable extracting specific users 2007-06-22 09:03:03 +00:00
skodak
2cc4b0f90d MDL-10223 Implement locking of grades and grade items - cron support still not implemented;
this patch also contains improvements in handling of needsupdate, though it is not yet fully working for calculated grades
2007-06-22 08:57:39 +00:00
skodak
578075c615 MDL-10202 fixed locktime trouble 2007-06-21 07:30:30 +00:00
skodak
ac9b080524 MDL-10202 merge raw and final grade tables 2007-06-20 23:06:29 +00:00
nicolasconnault
0936f59b63 MDL-9629 Added student names at left of grades table. 2007-06-20 20:10:19 +00:00
nicolasconnault
6500f2807f First draft of the grader report 2007-06-20 11:56:51 +00:00
nicolasconnault
561d406ba7 Started adding PHPDoc to flexible_table 2007-06-20 03:52:59 +00:00
mchurch
b069fbd9b3 MDL-10161 - Since get_course_... (users, students, teachers) is still being used by a number of functions (such as groups), trying to make them work with the SITE course the way they did pre-1.7, with $CFG->allusersarestudents set to TRUE. This will also have a configuration option that can be used to disable returning large amounts of users for the site course, if a site happens to be using this functionality and they have a large number of users. 2007-06-19 20:38:27 +00:00
moodler
3f59a54e0c Added support for xxxxx_install() hooks for generic plugins too 2007-06-19 16:35:41 +00:00
moodler
05f167f421 Only print notice when debugging MDL-10170 2007-06-19 16:27:04 +00:00
moodler
f11b9a9ed4 Fix for plugin directories with no plugins MDL-10170 2007-06-19 16:18:35 +00:00
jamiesensei
770fef0a3c MDL-10168 improvements to display of results from environment checks 2007-06-19 15:52:19 +00:00
jamiesensei
4579011918 elaborated phpdoc comment slightly for doc_link 2007-06-19 15:21:27 +00:00
jamiesensei
84e3d2ccf5 refactored page_doc_link into two functions. doc_link returns a link to docs. page_doc_link returns the link for this page. 2007-06-19 14:44:02 +00:00
skodak
df3cb76fc4 MDL-9137 calculated grades should work now, some other minor cleanup 2007-06-18 22:52:55 +00:00
skodak
c2a897b044 MDL-9137 removing obsoleted function, finals now processed only by update_final_grade() 2007-06-18 20:14:16 +00:00
skodak
95affb8a35 MDL-9137 readding GRADE_AGGREGATE_MODE 2007-06-18 15:29:20 +00:00
skodak
b8ff92b66b MDL-9137 various grading improvements
1/ initial support for migration of old grade_items and categories (not tested)
2/ rewritten grade update and calculation logic
3/ initial support for calculation formulas
4/ minor API refactoring and cleanup
5/ various small bugfixes
6/ fixed use of grademax with scales
7/ fixed some unit tests

TODO:
* implement proper locking of grades - needs discussion
* force recalculation of all formulas after adding/removing/changing of grade items
* better delete flag support
* support for NULLs n backup - Eloy already proposed a solution
* support for NULLs in set_field()
* speedup
* more unit tests nd functional tests
2007-06-18 13:43:40 +00:00
moodler
11e4a24ba9 Added an install hook ... any function called modulename_install() will be run when the module is installed
MDL-10108
2007-06-18 03:59:47 +00:00
nicolasconnault
4a490db004 MDL-9506 MDL-9629 Added code to grade_category::delete so that its children have their categoryid/parent field updated. However, the query used sets the fields to an empty string instead of a null value. The unit test for grade_categories fails. 2007-06-16 21:20:57 +00:00
nfreear
751457e6e4 Fixes bug MDL-10138 build_navigation needs hidden "You are here" heading. Also, white space. 2007-06-15 15:15:29 +00:00
stronk7
783fbd2234 Now the tokeniser is using the new textlib->entities_to_utf8()
own function (PHP4 and PHP compatible)

Merged from MOODLE_18_STABLE
2007-06-13 23:22:57 +00:00
stronk7
4e2cb0e3f3 Added entities_to_utf8() function to textlib, suitable to convert
any entity (numerical and html) to utf-8, providing a PHP4 and PH5
way to do the work.
Also, added the code2utf8() function to convert Unicode code numbers
to UTF-8 chars.

Merged from MOODLE_18_STABLE
2007-06-13 19:43:56 +00:00
skodak
f70152b7bb MDL-10104 grade_create_item() in gradelib.php was obsoleted by grade_update() function which does the creation and update of grade_items 2007-06-12 20:19:38 +00:00
skodak
9b7e5a3772 MDL-10103 grade_object:insert() now fetches the fresh data from db and updates itself; update_from_db() now uses the same process as new grade_object() for consistency 2007-06-12 20:16:49 +00:00
stronk7
7bb11c76d1 First cut of the tokeniser library. Modified from drupal search.module
code (see copyrights). The library converts any text/html into an array
of tokens with their score (weight). Supports stop_words, cjk basic
tokeniser (for indexers) and different modes of handling numbers.

Merged from MOODLE_18_STABLE
2007-06-12 18:15:55 +00:00
tjhunt
b5c2f0afff Fix typo spotted by Eclipse. 2007-06-12 13:47:21 +00:00
tjhunt
e765b5d377 Improve doc comments on get_context_* funcitions. 2007-06-12 11:11:42 +00:00
skodak
d185c3ee5d MDL-9516 improved support for activities with legacy grading 2007-06-12 10:33:52 +00:00
sam_marshall
6ae5e482e2 MDL-10083 CSV mimetype/icon support 2007-06-11 15:36:08 +00:00
skodak
e648f890ef grade_update now supports more grade_item properties 2007-06-11 10:55:31 +00:00
skodak
9f9afbdbab MDL-10078 unit tests for grade category failing on set_as_parent() 2007-06-10 21:17:42 +00:00
skodak
34e67f76a8 MDL-10076 finalize grade_is_locked() and implement grade item locking in assignment 2007-06-10 20:34:07 +00:00
skodak
89a792abac MDL-10057 XSS risk flag for Add/update course category 2007-06-10 19:35:05 +00:00
urs_hunkler
a8d82ea9a4 MDL-9977 and MDL-8446 - added body class 'ltr'/'rtl' for language direction to support themes for 'rtl' languages. 2007-06-10 13:54:38 +00:00
urs_hunkler
aa2ed80397 MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl languages and correct themes. 2007-06-10 13:44:05 +00:00
skodak
4c24cae1a1 MDL-10069 unit test for grade_item itemnumber generation broken 2007-06-09 17:24:44 +00:00
skodak
2904365752 MDL-10067 skip testing of bad inserts for mysql family - these are known to not work anyway 2007-06-09 17:10:32 +00:00