Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 333 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Google_Utils_URITemplate:: (8 methods):
  parse()
  resolveNextSection()
  replace()
  replaceVars()
  combine()
  getDataType()
  combineList()
  getValue()


Class: Google_Utils_URITemplate  - X-Ref

Implementation of levels 1-3 of the URI Template spec.

parse($string, array $parameters)   X-Ref


resolveNextSection($string, $parameters)   X-Ref
This function finds the first matching {...} block and
executes the replacement. It then calls itself to find
subsequent blocks, if any.


replace($string, $start, $end, $parameters)   X-Ref
No description

replaceVars($section,$parameters,$sep = ",",$combine = null,$reserved = false,$tag_empty = false,$combine_on_empty = true)   X-Ref
No description

combine($key,$parameters,$sep,$combine,$reserved,$tag_empty,$combine_on_empty)   X-Ref
No description

getDataType($data)   X-Ref
Return the type of a passed in value


combineList($vars,$sep,$parameters,$combine,$reserved,$tag_empty,$combine_on_empty)   X-Ref
Utility function that merges multiple combine calls
for multi-key templates.


getValue($value, $length)   X-Ref
Utility function to encode and trim values