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