Moodle 2.8 release notes: Difference between revisions
From MoodleDocs
sam marshall (talk | contribs) |
|||
Line 17: | Line 17: | ||
* There are new convenience functions to obtain <tt>$cm</tt> objects that belong to the <tt>cm_info</tt> class. <tt>get_course_and_cm_from_cmid($cmorid, $modulename)</tt> and <tt>get_course_and_cm_from_instance($instanceorid, $modulename)</tt> will efficiently obtain <tt>$course</tt> and <tt>$cm</tt> at the start of a module script in one line. Also, the new function <tt>cm_info::create($cm)</tt> can be used when you need a <tt>cm_info</tt> object, but only have a standard database record. | * There are new convenience functions to obtain <tt>$cm</tt> objects that belong to the <tt>cm_info</tt> class. <tt>get_course_and_cm_from_cmid($cmorid, $modulename)</tt> and <tt>get_course_and_cm_from_instance($instanceorid, $modulename)</tt> will efficiently obtain <tt>$course</tt> and <tt>$cm</tt> at the start of a module script in one line. Also, the new function <tt>cm_info::create($cm)</tt> can be used when you need a <tt>cm_info</tt> object, but only have a standard database record. | ||
* Choice event definitions have changed in MDL-3034 [placeholder for this to be expanded] | |||
* ... | * ... | ||
Revision as of 08:15, 1 October 2014
Releases > Moodle 2.8 release notes
Release date: Not yet released
Here is the full list of fixed issues in 2.8.
Highlights
- ...
Functional changes
- ...
API changes
- There are new convenience functions to obtain $cm objects that belong to the cm_info class. get_course_and_cm_from_cmid($cmorid, $modulename) and get_course_and_cm_from_instance($instanceorid, $modulename) will efficiently obtain $course and $cm at the start of a module script in one line. Also, the new function cm_info::create($cm) can be used when you need a cm_info object, but only have a standard database record.
- Choice event definitions have changed in MDL-3034 [placeholder for this to be expanded]
- ...
Fixes and improvements
- ...