Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
1e4cb189
Commit
1e4cb189
authored
Feb 04, 2011
by
Sam Hemelryk
Browse files
lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass
parent
eef3578a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/modinfolib.php
View file @
1e4cb189
...
...
@@ -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.
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment