Commit 1e4cb189 authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass

parent eef3578a
......@@ -40,7 +40,7 @@ if (!defined('MAX_MODINFO_CACHE_SIZE')) {
* This includes information about the course-modules and the sections on the course. It can also
* include dynamic data that has been updated for the current user.
*/
class course_modinfo {
class course_modinfo extends stdClass {
// For convenience we store the course object here as it is needed in other parts of code
private $course;
......@@ -283,7 +283,7 @@ class course_modinfo {
* data only using the supplied set functions. Setting the fields directly is not supported
* and may cause problems later.
*/
class cm_info {
class cm_info extends stdClass {
/**
* State: Only basic data from modinfo cache is available.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment