|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| get_context_name ($withprefix=true, $short=false) | |
| get_url () | |
| get_capabilities () | |
| get_child_contexts () | |
Static Public Member Functions | |
| static | get_level_name () |
| static | instance ($instanceid=0, $strictness=MUST_EXIST, $cache=true) |
Protected Member Functions | |
| __construct (stdClass $record) | |
Static Protected Member Functions | |
| static | create_level_instances () |
| static | get_cleanup_sql () |
| static | build_paths ($force) |
| __construct | ( | stdClass $ | record | ) | [protected] |
Please use context_system::instance() if you need the instance of context.
| stdClass | $record |
Reimplemented from context.
Definition at line 5453 of file accesslib.php.
| static build_paths | ( | $ | force | ) | [static, protected] |
Rebuild context paths and depths at system context level.
| $force |
Reimplemented from context.
Definition at line 5653 of file accesslib.php.

| static create_level_instances | ( | ) | [static, protected] |
Create missing context instances at system context
Reimplemented from context.
Definition at line 5511 of file accesslib.php.

| get_capabilities | ( | ) |
Returns array of relevant context capability records.
Reimplemented from context.
Definition at line 5495 of file accesslib.php.
Returns all site contexts except the system context, DO NOT call on production servers!!
Contexts are not cached.
Reimplemented from context.
Definition at line 5611 of file accesslib.php.

| static get_cleanup_sql | ( | ) | [static, protected] |
Returns sql necessary for purging of stale context instances.
Reimplemented from context.
Definition at line 5637 of file accesslib.php.
| get_context_name | ( | $ | withprefix = true, |
| $ | short = false |
||
| ) |
Returns human readable context identifier.
| boolean | $withprefix | does not apply to system context |
| boolean | $short | does not apply to system context |
Reimplemented from context.
Definition at line 5477 of file accesslib.php.

| static get_level_name | ( | ) | [static] |
Returns human readable context level name.
Definition at line 5466 of file accesslib.php.

| get_url | ( | ) |
Returns the most relevant URL for this context.
Reimplemented from context.
Definition at line 5486 of file accesslib.php.
| static instance | ( | $ | instanceid = 0, |
| $ | strictness = MUST_EXIST, |
||
| $ | cache = true |
||
| ) | [static] |
Returns system context instance.
| int | $instanceid | |
| int | $strictness | |
| bool | $cache |
Definition at line 5525 of file accesslib.php.

