Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

URL resolver.

Copyright: 2016 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 173 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

url_resolver:: (11 methods):
  competency()
  framework()
  frameworks()
  plan()
  plans()
  template()
  templates()
  user_competency()
  user_competency_in_course()
  user_competency_in_plan()
  user_evidence()


Class: url_resolver  - X-Ref

URL resolver class.

competency($competencyid, $pagecontextid)   X-Ref
The URL where the competency can be found.

param: int $competencyid The competency ID.
param: int $pagecontextid The ID of the context we are in.
return: moodle_url

framework($frameworkid, $pagecontextid)   X-Ref
The URL where the framework can be found.

param: int $frameworkid The framework ID.
param: int $pagecontextid The ID of the context we are in.
return: moodle_url

frameworks($pagecontextid)   X-Ref
The URL where the frameworks can be found.

param: int $pagecontextid The ID of the context that we are browsing.
return: moodle_url

plan($planid)   X-Ref
The URL where the plan can be found.

param: int $planid The plan ID.
return: moodle_url

plans($userid)   X-Ref
The URL where the plans of a user can be found.

param: int $userid The user ID.
return: moodle_url

template($templateid, $pagecontextid)   X-Ref
The URL where the template can be found.

param: int $templateid The template ID.
param: int $pagecontextid The ID of the context we are in.
return: moodle_url

templates($pagecontextid)   X-Ref
The URL where the templates can be found.

param: int $pagecontextid The ID of the context that we are browsing.
return: moodle_url

user_competency($usercompetencyid)   X-Ref
The URL where the user competency can be found.

param: int $usercompetencyid The user competency ID
return: moodle_url

user_competency_in_course($userid, $competencyid, $courseid)   X-Ref
The URL where the user competency can be found in the context of a course.

param: int $userid The user ID
param: int $competencyid The competency ID.
param: int $courseid The course ID.
return: moodle_url

user_competency_in_plan($userid, $competencyid, $planid)   X-Ref
The URL where the user competency can be found in the context of a plan.

param: int $userid The user ID
param: int $competencyid The competency ID.
param: int $planid The plan ID.
return: moodle_url

user_evidence($userevidenceid)   X-Ref
The URL where the user evidence (of prior learning) can be found.

param: int $userevidenceid The user evidence ID
return: moodle_url