Moodle APIs 4.2
Moodle 4.2.7 (Build: 20240422)
Classes | Namespaces
context.php File Reference

Basic moodle context abstraction class. More...

Classes

class  core\context
 

Namespaces

namespace  core
  
 

Detailed Description

Basic moodle context abstraction class.

Google confirms that no other important framework is using "context" class, we could use something else like mcontext or moodle_context, but we need to type this very often which would be annoying and it would take too much space...

This class is derived from stdClass for backwards compatibility with odl $context record that was returned from DML $DB->get_record()