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]

This plugin is used to access wikimedia files

Copyright: 2010 Dongsheng Cai {@link http://dongsheng.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 198 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 repository/wikimedia/wikimedia.php

Defines 1 class

repository_wikimedia:: (11 methods):
  get_maxwidth()
  get_maxheight()
  get_listing()
  check_login()
  print_login()
  global_search()
  search()
  logout()
  supported_returntypes()
  get_file_source_info()
  contains_private_data()


Class: repository_wikimedia  - X-Ref

repository_wikimedia class
This is a class used to browse images from wikimedia

get_maxwidth()   X-Ref
Returns maximum width for images

Takes the maximum width for images eithre from search form or from
user preferences, updates user preferences if needed

return: int

get_maxheight()   X-Ref
Returns maximum height for images

Takes the maximum height for images eithre from search form or from
user preferences, updates user preferences if needed

return: int

get_listing($path = '', $page = '')   X-Ref
No description

check_login()   X-Ref
No description

print_login()   X-Ref
No description

global_search()   X-Ref
No description

search($search_text, $page = 0)   X-Ref
No description

logout()   X-Ref
No description

supported_returntypes()   X-Ref
No description

get_file_source_info($url)   X-Ref
Return the source information

param: stdClass $url
return: string|null

contains_private_data()   X-Ref
Is this repository accessing private data?

return: bool