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]

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