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
skodak
19be539627
MDL-10066 move testmodforumlib.php into mod/forum/simpletest/
2007-06-09 16:55:31 +00:00
skodak
cdbbd26f80
MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files
2007-06-09 16:32:36 +00:00
skodak
52f81103d3
MDL-10063 simpletestlib.php included from majority of unit tests - let's include it once from the test runner itself
2007-06-09 16:17:33 +00:00
skodak
02e6a9731f
MDL-9866 reverting previous incorrect fix for include() in simpletest library; patching grade unit tests instead
2007-06-09 15:03:05 +00:00
skodak
2bb0dbf71d
MDL-10062 - unit test of raw grade load_text() improved
2007-06-09 14:29:07 +00:00
skodak
4cf1b9be9d
MDL-10062 - changes in raw grade handling of feedback and information
...
improved grade_update() function
2007-06-09 14:16:20 +00:00
anthonyforth
44968276c1
Fix for MDL-9942
2007-06-08 09:19:41 +00:00
martinlanghoff
97e9803b48
moodlelib:moodle_request_shutdown() - only call apache_child_terminate if child_terminate is true - MDL-9350
...
Apparently there _is_ a PHP ini setting controlling
it -- defaults to off.
2007-06-07 21:22:20 +00:00
nicolasconnault
1c307f2186
grade_item idnumber now self generated if needed.
...
deleted flag implemented in grade_item::update method
added GRADE_TYPE_NONE to gradelib and updated grade_item object
Implemented multiple items (generation of itemnumber when not explicitly given)
2007-06-07 12:45:24 +00:00
skodak
c5b5f18dc1
MDL-9516 update_grade() inline docs
2007-06-07 08:34:04 +00:00
skodak
b67ec72f57
MDL-9516 update_grade(); now required $source of grading to allow modification of original grades in activities through grade_updated event
2007-06-06 23:04:24 +00:00
skodak
13127313d3
fixed unit grade tests - missing grade types
2007-06-06 22:15:40 +00:00
skodak
75e1038756
fixing uninitilaized scale problems in last commit
2007-06-06 19:16:37 +00:00
skodak
b919d68049
fixed mnod typo
2007-06-06 07:59:55 +00:00
toyomoyo
43a8e6aa49
fixing a typo
2007-06-06 02:45:39 +00:00
skodak
612607bd47
MDL-9516 new central grading function update_grade(); to be improved/tested more tomorrow
2007-06-05 22:58:37 +00:00
toyomoyo
4d40aa144a
grade import temporary buffer tables and encoding/import form changes
2007-06-05 09:28:15 +00:00
nicolasconnault
210611f6ee
MDL-9629 Changed grade_item.gradetype default to 1, added GRADE_TYPE_NONE constant = 0, incrementing existing constants by 1. Set up auto-generation of idnumber for grade_item if itemmodule and iteminstance are set, only a temporary stub if they are not set (must be replaced by correct generation code). New category form now has server-side validation (not using formslib)
2007-06-05 08:50:24 +00:00
toyomoyo
1b63e57388
adding a usermodified field to post table
2007-06-05 05:40:10 +00:00
nicolasconnault
bbac4ae7c5
MDL-9972 Removed the __destruct() method, which was not needed. Also fixed a few bugs that caused notices in PHP5.
2007-06-05 01:19:09 +00:00
nicolasconnault
ffa6e8d3c0
MDL-9629 Category edit page now supports creation of a new category for selected items or categories.
2007-06-05 00:39:01 +00:00
nicolasconnault
de5284f26d
MDL-9137 Almost finished the edit category page. The only remaining issue is some sort of endless loop starting in grade_category::set_as_parent. Big issue...
2007-06-01 08:01:47 +00:00
nicolasconnault
ec4560cc58
MDL-9137 Removed hidden field from grade_categories and added deleted field to grade_items. Also added 2 images in pix/i
2007-06-01 04:46:24 +00:00
nicolasconnault
5fad506139
MDL-9629 Category edit page now implements delete, show/hide, lock/unlock, moveup/movedown and move actions. The edit icon is also shown but not yet implemented.
2007-06-01 04:02:37 +00:00
nicolasconnault
88e794d6c8
MDL-9628 Move work on the category edit page
2007-05-31 08:57:05 +00:00
nicolasconnault
0fc7f62445
MDL-9506 MDL-9137 MDL-9629
...
Added a number of small getters and setters to grade_item and grade_category, to hide the structural differences between the two, and provide a common interface for cases when we are not sure whether an $object is of one type or another.
The grade_tree::renumber() method now adds complete objects to the need_update array, because both grade_category and grade_item need to update their parent field when moved to a different parent. Amazingly, these important changes worked straight away (after 1 hour of coding without testing anything), and all the unit tests passed!
2007-05-31 03:15:43 +00:00
nicolasconnault
5bfa0d793a
Implemented a test version of the gradebook category edit page, and developed the get_edit_tree method in grade_tree. Items can be successfully moved up and down, and a "move" button lets the user select a source element, then a destination box. All actions use POST.
2007-05-30 08:48:11 +00:00