Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
URL manager class. More...
Public Member Functions | |
templates ($pagecontextid) | |
The URL where the templates can be found. | |
Static Public Member Functions | |
static | competency ($competencyid, $pagecontextid) |
The URL where the competency can be found. | |
static | framework ($frameworkid, $pagecontextid) |
The URL where the framework can be found. | |
static | frameworks ($pagecontextid) |
The URL where the frameworks can be found. | |
static | plan ($planid) |
The URL where the plan can be found. | |
static | plans ($userid) |
The URL where the plans of a user can be found. | |
static | template ($templateid, $pagecontextid) |
The URL where the template can be found. | |
static | user_competency ($usercompetencyid) |
The URL where the user competency can be found. | |
static | user_competency_in_course ($userid, $competencyid, $courseid) |
The URL where the user competency can be found in the context of a course. | |
static | user_competency_in_plan ($userid, $competencyid, $planid) |
The URL where the user competency can be found in the context of a plan. | |
static | user_evidence ($userevidenceid) |
The URL where the user evidence (of prior learning) can be found. | |
Static Protected Member Functions | |
static | get ($resource, $args) |
Defer to the resolver. | |
Static Protected Attributes | |
static url_resolver | $resolver |
The URL resolver instance. | |
URL manager class.
This class has to be used to get the URL to a resource, this allows for different alternate frontends to be used without resorting to core hacks. Note that you do not have to use this when you are navigating between pages of your own plugin.
To set another resolver, set the following config value in config.php: $CFG->core_competency_url_resolver = 'your_plugin::::your_url_resolver_class';
Your URL resolver should implement the same methods as the ones listed in this class (except for self::get()
}) but not statically.
/!:: Note, resolvers MUST NEVER assume that the resource, or the resources represented by the arguments, still exist.
|
static |
The URL where the competency can be found.
int | $competencyid | The competency ID. |
int | $pagecontextid | The ID of the context we are in. |
moodle_url |
|
static |
The URL where the framework can be found.
int | $frameworkid | The framework ID. |
int | $pagecontextid | The ID of the context we are in. |
moodle_url |
|
static |
The URL where the frameworks can be found.
int | $pagecontextid | The ID of the context that we are browsing. |
moodle_url |
|
staticprotected |
Defer to the resolver.
string | $resource | The resource type. |
array | $args | The arguments. |
mixed |
|
static |
|
static |
The URL where the plans of a user can be found.
int | $userid | The user ID. |
moodle_url |
|
static |
The URL where the template can be found.
int | $templateid | The template ID. |
int | $pagecontextid | The ID of the context we are in. |
moodle_url |
core_competency\url::templates | ( | $pagecontextid | ) |
The URL where the templates can be found.
int | $pagecontextid | The ID of the context that we are browsing. |
moodle_url |
|
static |
The URL where the user competency can be found.
int | $usercompetencyid | The user competency ID |
moodle_url |
|
static |
The URL where the user competency can be found in the context of a course.
int | $userid | The user ID |
int | $competencyid | The competency ID. |
int | $courseid | The course ID. |
moodle_url |
|
static |
The URL where the user competency can be found in the context of a plan.
int | $userid | The user ID |
int | $competencyid | The competency ID. |
int | $planid | The plan ID. |
moodle_url |
|
static |
The URL where the user evidence (of prior learning) can be found.
int | $userevidenceid | The user evidence ID |
moodle_url |