|
| __get ($name) |
| Magic method getter, redirects to read only values. More...
|
|
| __isset ($name) |
| Full support for isset on our magic read only properties. More...
|
|
| __set ($name, $value) |
| Magic setter method, we do not want anybody to modify properties from the outside. More...
|
|
| __unset ($name) |
| All properties are read only, sorry. More...
|
|
| delete () |
| Delete the context content and the context record itself.
|
|
| delete_capabilities () |
| Unassign all capabilities from a context.
|
|
| delete_content () |
| Delete all data linked to content, do not delete the context record itself.
|
|
| get_capabilities (string $sort=self::DEFAULT_CAPABILITY_SORT) |
| Returns array of relevant context capability records. More...
|
|
| get_child_contexts () |
| Recursive function which, given a context, find all its children context ids. More...
|
|
| get_context_name ($withprefix=true, $short=false, $escape=true) |
| Returns human readable context identifier. More...
|
|
| get_course_context ($strict=true) |
| Is this context part of any course? If yes return course context. More...
|
|
| get_parent_context () |
| Returns parent context. More...
|
|
| get_parent_context_ids ($includeself=false) |
| Returns parent context ids of this context in reversed order, i.e. More...
|
|
| get_parent_context_paths ($includeself=false) |
| Returns parent context paths of this context. More...
|
|
| get_parent_contexts ($includeself=false) |
| Returns parent contexts of this context in reversed order, i.e. More...
|
|
| get_url () |
| Returns the most relevant URL for this context. More...
|
|
| getIterator () |
| Create an iterator because magic vars can't be seen by 'foreach'. More...
|
|
| is_child_of (context $possibleparent, bool $includeself) |
| Determine if the current context is a child of the possible parent. More...
|
|
| is_locked () |
| Whether the current context is locked. More...
|
|
| is_parent_of (context $possiblechild, bool $includeself) |
| Determine if the current context is a parent of the possible child. More...
|
|
| mark_dirty () |
| Mark a context as dirty (with timestamp) so as to force reloading of the context.
|
|
| reload_if_dirty () |
| Reset all cached permissions and definitions if the necessary. More...
|
|
| reset_paths ($rebuild=true) |
| Remove all context path info and optionally rebuild it. More...
|
|
| set_locked (bool $locked) |
| Set whether this context has been locked or not. More...
|
|
| update_moved (context $newparent) |
| Update context info after moving context in the tree structure. More...
|
|
|
int | $_contextlevel |
| The context level Can be accessed publicly through $context->contextlevel One of CONTEXT_* e.g. More...
|
|
int | $_depth |
| The depth of the context in relation to parent contexts Can be accessed publicly through $context->depth.
|
|
int | $_id |
| The context id Can be accessed publicly through $context->id.
|
|
int | $_instanceid |
| Id of the item this context is related to e.g. More...
|
|
int | $_locked |
| Whether this context is locked or not. More...
|
|
string | $_path |
| The path to the context always starting from the system context Can be accessed publicly through $context->path.
|
|
string const | DEFAULT_CAPABILITY_SORT = 'contextlevel, component, name' |
| Default sorting of capabilities in {. More...
|
|