Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

Main class for plugin 'media_vimeo'

Copyright: 2016 Marina Glancy
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

media_vimeo_plugin:: (6 methods):
  embed_external()
  get_video_id()
  get_video_id_with_code()
  get_regex()
  get_embeddable_markers()
  get_rank()


Class: media_vimeo_plugin  - X-Ref

Player that embeds Vimeo links.

embed_external(moodle_url $url, $name, $width, $height, $options)   X-Ref
No description

get_video_id()   X-Ref
Get Vimeo video ID.

return: string

get_video_id_with_code()   X-Ref
Get video id with code.

return: string|null If NULL then the URL does not contain the code.

get_regex()   X-Ref
Returns regular expression to match vimeo URLs.

return: string

get_embeddable_markers()   X-Ref
No description

get_rank()   X-Ref
Default rank

return: int