mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass
This commit is contained in:
parent
eef3578af0
commit
1e4cb18940
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue