lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass
authorSam Hemelryk <sam@moodle.com>
Fri, 4 Feb 2011 08:22:57 +0000 (16:22 +0800)
committerSam Hemelryk <sam@moodle.com>
Fri, 4 Feb 2011 08:22:57 +0000 (16:22 +0800)
lib/modinfolib.php

index 1265d0e..0d5bf93 100644 (file)
@@ -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.
      */