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

This plugin is used to access coursefiles repository

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

Defines 1 class

repository_coursefiles:: (9 methods):
  print_login()
  get_listing()
  get_link()
  is_visible()
  get_name()
  supported_returntypes()
  get_type_option_names()
  has_moodle_files()
  contains_private_data()


Class: repository_coursefiles  - X-Ref

repository_coursefiles class is used to browse course files

print_login()   X-Ref
coursefiles plugin doesn't require login, so list all files

return: mixed

get_listing($encodedpath = '', $page = '')   X-Ref
Get file listing

param: string $encodedpath
return: mixed

get_link($encoded)   X-Ref
No description

is_visible()   X-Ref
Return is the instance is visible
(is the type visible ? is the context enable ?)

return: boolean

get_name()   X-Ref
Return the repository name.

return: string

supported_returntypes()   X-Ref
No description

get_type_option_names()   X-Ref
No description

has_moodle_files()   X-Ref
Does this repository used to browse moodle files?

return: boolean

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

return: bool