Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Re: Is there a thing called a blocks context?

$
0
0
by Tim Hunt.  

Well, your wording is not clear. A course context does not ask anything. It is a thing, not a question.

If you understand object-oriented programming, then one way to understand it is that a context is like a base class for "subset of a Moodle site", with subclasses like Course, module, block, system, etc.

Another way to think about it is like a file system. You have your hard drive, which contains folders, which contains files. The system context is is like the whole hard drive. Course and course-category contexts are like folders, and module, block and user contexts are like files.

Checking a capability is like checking a file permissions on a file or a folder.


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>