sam marshall d25c41fbc5 MDL-46706 Library: API to get cm_info more easily
Creates two new functions that make it easier to get cm_info
objects (both in modinfolib.php):

get_course_and_cm($cmid) - intended for use e.g. in modules;
efficiently loads $course and $cm (normally saves 1 query).

cm_info::from_mixed($cm) - for use in back-end API where we
are not sure whether a $cm is a real cm_info or a stdClass.
2014-08-15 18:24:11 +01:00
..
2014-05-19 17:03:04 +01:00
2014-05-19 17:03:04 +01:00
2014-07-22 17:02:21 +01:00
2014-05-19 17:03:04 +01:00
2014-05-19 17:03:04 +01:00
2014-04-14 16:36:02 +08:00