[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/repository/recent/ -> lib.php (summary)

This plugin is used to access recent used files

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

Defines 1 class

repository_recent:: (10 methods):
  __construct()
  print_login()
  get_recent_files()
  get_listing()
  get_type_option_names()
  type_config_form()
  supported_returntypes()
  file_is_accessible()
  has_moodle_files()
  contains_private_data()


Class: repository_recent  - X-Ref

repository_recent class is used to browse recent used files

__construct($repositoryid, $context = SYSCONTEXTID, $options = array()   X-Ref
Initialize recent plugin

param: int $repositoryid
param: int $context
param: array $options

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

return: mixed

get_recent_files($limitfrom = 0, $limit = DEFAULT_RECENT_FILES_NUM)   X-Ref
No description

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

param: string $encodedpath
param: string $path not used by this plugin
return: mixed

get_type_option_names()   X-Ref
No description

type_config_form($mform, $classname = 'repository')   X-Ref
No description

supported_returntypes()   X-Ref
This plugin doesn't support to link to external links

return: int

file_is_accessible($source)   X-Ref
Repository method to make sure that user can access particular file.

This is checked when user tries to pick the file from repository to deal with
potential parameter substitutions is request

param: string $source
return: bool whether the file is accessible by current user

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



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1