Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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