nicolasconnault
a39cac258d
MDL-9506 Elements of the array returned by grade_category::get_children are now indexed by sortorder, to work more easily with grade_tree methods.
...
New get_sortorder method for grade_category and grade_item. This is used when the type of an object is unknown, and could be either one. Because categories have a "virtual" sortorder (through their grade_item), they can transparently return one as well.
Unit tests fail for grade_tree at present because of faulty implementation which is being fixed. The $depth attribute has been completely removed, as well as a number of switch statements, in favour of an $index variable which is exploded and used to build strings of array keys for eval statements (unset and array_splice). Can't wait to get all this working :-)
2007-05-17 09:04:52 +00:00
..
2007-04-07 08:30:19 +00:00
2007-05-09 01:11:45 +00:00
2006-11-23 20:30:57 +00:00
2007-05-14 09:30:56 +00:00
2007-04-30 13:19:33 +00:00
2007-05-16 20:32:01 +00:00
2007-05-17 09:04:52 +00:00
2007-04-18 21:52:03 +00:00
2007-01-23 05:19:28 +00:00
2007-01-04 10:45:57 +00:00
2006-10-17 07:09:18 +00:00
2007-03-28 07:17:26 +00:00
2007-01-04 13:15:04 +13:00
2007-03-12 08:41:28 +00:00
2007-05-17 09:04:52 +00:00
2007-04-26 07:11:44 +00:00
2007-01-04 13:15:04 +13:00
2007-04-15 17:04:26 +00:00
2007-02-02 18:38:05 +00:00
2007-04-20 00:10:52 +00:00
2007-02-08 05:19:36 +00:00
2007-05-15 03:19:01 +00:00
2007-05-10 08:23:44 +00:00
2007-04-20 10:02:38 +00:00
2007-04-19 08:45:30 +00:00
2007-01-03 15:00:13 +00:00
2007-01-24 07:08:50 +00:00
2007-01-03 19:33:44 +00:00
2007-05-09 14:33:42 +00:00
2007-05-16 23:19:15 +00:00
2007-04-29 20:31:47 +00:00
2007-03-11 06:59:53 +00:00
2007-04-15 11:11:48 +00:00
2006-12-27 22:47:51 +00:00
2007-04-27 17:43:03 +00:00
2007-05-15 03:19:01 +00:00
2007-02-19 23:31:58 +00:00
2007-05-03 07:15:30 +00:00
2006-11-11 17:23:20 +00:00
2007-05-08 15:07:25 +00:00
2007-05-17 02:22:32 +00:00
2006-11-11 17:23:20 +00:00
2007-05-08 16:25:18 +00:00
2007-05-15 07:50:19 +00:00
2006-12-11 10:07:47 +00:00
2007-05-11 22:22:14 +00:00
2007-01-22 20:15:12 +00:00
2007-02-08 11:23:25 +00:00
2006-12-27 22:47:51 +00:00
2007-05-14 13:28:21 +00:00
2006-12-25 18:22:28 +00:00
2007-04-23 21:11:10 +00:00
2007-03-20 02:59:34 +00:00
2007-05-08 15:07:25 +00:00
2007-03-23 08:01:01 +00:00
2007-01-22 20:15:12 +00:00
2007-03-13 22:40:42 +00:00
2007-04-19 08:45:30 +00:00
2007-03-20 02:59:34 +00:00
2007-03-06 05:05:45 +00:00
2007-04-11 23:53:15 +00:00
2007-02-22 18:27:10 +00:00
2007-04-10 15:32:37 +00:00
2007-03-10 14:47:45 +00:00
2007-05-16 18:17:14 +00:00
2007-04-02 14:57:56 +00:00
2006-09-27 12:57:33 +00:00
2007-05-16 08:03:37 +00:00
2006-12-12 07:24:32 +00:00
2007-04-04 03:35:23 +00:00