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 merlot files

Copyright: 2010 Dongsheng Cai {@link http://dongsheng.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 175 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

repository_merlot:: (12 methods):
  __construct()
  check_login()
  global_search()
  search()
  get_listing()
  _get_collection()
  print_login()
  get_type_option_names()
  type_config_form()
  supported_returntypes()
  supported_filetypes()
  contains_private_data()


Class: repository_merlot  - X-Ref

repository_merlot is used to search merlot.org in moodle

__construct($repositoryid, $context = SYSCONTEXTID, $options = array()   X-Ref
No description

check_login()   X-Ref
Display login screen or not

return: boolean

global_search()   X-Ref
Doesn't support global search

return: boolean

search($search_text, $page = 0)   X-Ref
Look for a link in merlot.org

param: string $search_text
return: array

get_listing($path = '', $page = '')   X-Ref
Get a list of links

return: array

_get_collection($keyword)   X-Ref
No description

print_login()   X-Ref
Define a search form

return: array

get_type_option_names()   X-Ref
Names of the plugin settings

return: array

type_config_form($mform, $classname = 'repository')   X-Ref
Add Plugin settings input to Moodle form

param: object $mform

supported_returntypes()   X-Ref
Support external link only

return: int

supported_filetypes()   X-Ref
No description

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

return: bool