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

This commit is contained in:
Sam Hemelryk 2011-02-04 16:22:57 +08:00
parent eef3578af0
commit 1e4cb18940

View 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 * 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. * 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 // For convenience we store the course object here as it is needed in other parts of code
private $course; private $course;
@ -283,7 +283,7 @@ class course_modinfo {
* data only using the supplied set functions. Setting the fields directly is not supported * data only using the supplied set functions. Setting the fields directly is not supported
* and may cause problems later. * and may cause problems later.
*/ */
class cm_info { class cm_info extends stdClass {
/** /**
* State: Only basic data from modinfo cache is available. * State: Only basic data from modinfo cache is available.
*/ */