jamiesensei [Sun, 27 May 2007 05:01:51 +0000 (05:01 +0000)]
made hardFreeze work properly for a whole form. New paramater in moodleform constructor 'editable' defaults to true. If true then display form as normal. If false then hardFreeze whole form. Now displays form without an submit buttons. If form is hard frozen no data is ever passed to get_data.
tjhunt [Thu, 24 May 2007 17:25:37 +0000 (17:25 +0000)]
Removing remaining references to RQP in core code. I had not realised there were so many.\r\rBy the way, I am committing this from a pub in York. Pub's with wireless, whatever next?
nicolasconnault [Thu, 24 May 2007 08:50:01 +0000 (08:50 +0000)]
MDL-9629 Beginning the edit category page. Also added dmllib::sql_max($field) and fixed a few bugs. Grade_item should now extrapolate its sortorder upon insertion if not set, by looking up the last sortorder in the table, and incrementing by 1.
nicolasconnault [Tue, 22 May 2007 09:03:33 +0000 (09:03 +0000)]
MDL-9506 Changed grade_tree fullobjects param (not fully implemented) to $include_grades param, default to false, fully implemented. Full objects are always loaded when building the tree, but grades are only loaded conditionally.
skodak [Mon, 21 May 2007 20:33:42 +0000 (20:33 +0000)]
MDL-9880 Remove user_activate() method from public API because it was used only from user_confirm() in LDAP, other plugins use only user_confirm()
MDL-9575 fix email signup in ldap auth mod
skodak [Mon, 21 May 2007 20:08:45 +0000 (20:08 +0000)]
MDL-9861 Password expiration value is calculated wrong when ldap_expirationtime2unix() returns 0 - patch by Iñaki Arenaza; merged from MOODLE_18_STABLE
nicolasconnault [Mon, 21 May 2007 08:56:44 +0000 (08:56 +0000)]
MDL-9506 Extracted the code that applies droplow and keephigh rules to aggregated values, into its own little method. Unit testing this method revealed a coding error which I have rectified.
nicolasconnault [Mon, 21 May 2007 05:54:12 +0000 (05:54 +0000)]
MDL-9506 Removed the debugging message for the fetch() methods. Added droplow and keephigh rules to grade_category::aggregate_grades(). The only question now is what to do when the droplow or keephigh field is larger than the number of grades for a given user/item combination. At the moment it just gives that value 0.
jamiesensei [Sun, 20 May 2007 16:17:48 +0000 (16:17 +0000)]
UI for editing questions changed to support sharing questions in multiple contexts. Also changed import / export and category editing form to use formslib.
jamiesensei [Sun, 20 May 2007 13:59:58 +0000 (13:59 +0000)]
some changes to listlib to make it possible to chain the paging of several lists together that are displayed on the same page, so that paging can work across several lists
nicolasconnault [Fri, 18 May 2007 08:05:53 +0000 (08:05 +0000)]
MDL-9506 New grade_category::set_as_parent($children) method (non-static). Crucial method for adding categories over children. 4 constraints have been set up, and successfully tested in unit tests. However, the method fails when it comes to updating the children's parent fields. The test data may be missing some required fields.
nicolasconnault [Fri, 18 May 2007 05:34:30 +0000 (05:34 +0000)]
MDL-9506 Fixed up the grade_tree and its unit tests. The main change to notice is in grade_category, where the array returned by get_children() is indexed by sortorder. The associated unit tests have been updated to reflect this important change.
skodak [Thu, 17 May 2007 15:44:07 +0000 (15:44 +0000)]
MDL-9843 get_cached_events does not handle components properly;
whitespace cleanup;
minor coding style changes - such as always returning arrays from get cached and file events;
marked some functions as eventslib internal only