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