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 user's private files

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

Defines 1 class

repository_user:: (5 methods):
  print_login()
  get_listing()
  has_moodle_files()
  supported_returntypes()
  contains_private_data()


Class: repository_user  - X-Ref

repository_user class is used to browse user private files

print_login()   X-Ref
user plugin doesn't require login

return: mixed

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

param: string $encodedpath
return: mixed

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

return: boolean

supported_returntypes()   X-Ref
User cannot use the external link to dropbox

return: int

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

return: bool