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]

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