(no description)
File Size: | 307 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
system:: (14 methods):
__construct()
get_short_name()
get_level_name()
get_context_name()
get_url()
get_compatible_role_archetypes()
get_possible_parent_levels()
get_capabilities()
create_level_instances()
instance()
get_child_contexts()
get_cleanup_sql()
build_paths()
set_locked()
__construct(stdClass $record) X-Ref |
Please use \core\context\system::instance() if you need the instance of context. param: stdClass $record |
get_short_name() X-Ref |
Returns short context name. return: string |
get_level_name() X-Ref |
Returns human readable context level name. return: string the human readable context level name. |
get_context_name($withprefix = true, $short = false, $escape = true) X-Ref |
Returns human readable context identifier. param: boolean $withprefix does not apply to system context param: boolean $short does not apply to system context param: boolean $escape does not apply to system context return: string the human readable context name. |
get_url() X-Ref |
Returns the most relevant URL for this context. return: moodle_url |
get_compatible_role_archetypes() X-Ref |
Returns list of all role archetypes that are compatible with role assignments in context level. return: int[] |
get_possible_parent_levels() X-Ref |
Returns list of all possible parent context levels. return: int[] |
get_capabilities(string $sort = self::DEFAULT_CAPABILITY_SORT) X-Ref |
Returns array of relevant context capability records. param: string $sort return: array |
create_level_instances() X-Ref |
Create missing context instances at system context |
instance($instanceid = 0, $strictness = MUST_EXIST, $cache = true) X-Ref |
Returns system context instance. param: int $instanceid should be 0 param: int $strictness param: bool $cache return: system context instance |
get_child_contexts() X-Ref |
Returns all site contexts except the system context, DO NOT call on production servers!! Contexts are not cached. return: array |
get_cleanup_sql() X-Ref |
Returns sql necessary for purging of stale context instances. return: string cleanup SQL |
build_paths($force) X-Ref |
Rebuild context paths and depths at system context level. param: bool $force |
set_locked(bool $locked) X-Ref |
Set whether this context has been locked or not. param: bool $locked return: $this |