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.

Differences Between: [Versions 311 and 402] [Versions 311 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