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


Public Member Functions | |
| get_context_name ($withprefix=true, $short=false) | |
| get_url () | |
| get_capabilities () | |
| get_course_context ($strict=true) | |
Static Public Member Functions | |
| static | get_level_name () |
| static | instance ($instanceid, $strictness=MUST_EXIST) |
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_module::instance($cmid) if you need the instance of context. Alternatively if you know only the context id use context::instance_by_id($contextid)
| stdClass | $record |
Reimplemented from context.
Definition at line 6294 of file accesslib.php.
| static build_paths | ( | $ | force | ) | [static, protected] |
Rebuild context paths and depths at module context level.
| $force |
Reimplemented from context.
Definition at line 6489 of file accesslib.php.

| static create_level_instances | ( | ) | [static, protected] |
Create missing context instances at module context level
Reimplemented from context.
Definition at line 6454 of file accesslib.php.
| get_capabilities | ( | ) |
Returns array of relevant context capability records.
Reimplemented from context.
Definition at line 6360 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 6472 of file accesslib.php.
| get_context_name | ( | $ | withprefix = true, |
| $ | short = false |
||
| ) |
Returns human readable context identifier.
| boolean | $withprefix | whether to prefix the name of the context with the module name, e.g. Forum, Glossary, etc. |
| boolean | $short | does not apply to module context |
Reimplemented from context.
Definition at line 6319 of file accesslib.php.
| get_course_context | ( | $ | strict = true | ) |
Is this context part of any course? If yes return course context.
| bool | $strict | true means throw exception if not found, false means return false if not found |
Reimplemented from context.
Definition at line 6415 of file accesslib.php.

| static get_level_name | ( | ) | [static] |
Returns human readable context level name.
Definition at line 6307 of file accesslib.php.
| get_url | ( | ) |
Returns the most relevant URL for this context.
Reimplemented from context.
Definition at line 6342 of file accesslib.php.
| static instance | ( | $ | instanceid, |
| $ | strictness = MUST_EXIST |
||
| ) | [static] |
Returns module context instance.
| int | $instanceid | |
| int | $strictness |
Definition at line 6427 of file accesslib.php.

