[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

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

This plugin is used to access files by providing an url

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

Defines 1 class

repository_url:: (11 methods):
  __construct()
  check_login()
  print_login()
  get_listing()
  parse_file()
  add_image_to_list()
  guess_filename()
  supported_returntypes()
  get_file_source_info()
  supported_filetypes()
  contains_private_data()


Class: repository_url  - X-Ref

repository_url class
A subclass of repository, which is used to download a file from a specific url

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

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

check_login()   X-Ref
No description

print_login()   X-Ref

return: mixed

get_listing($path='', $page='')   X-Ref

param: mixed $path
param: string $search
return: array

parse_file($baseurl, $relativeurl, &$list, $mainfile = false)   X-Ref
Parses one file (either html or css)

param: string $baseurl (optional) URL of the file where link to this file was found
param: string $relativeurl relative or absolute link to the file
param: array $list
param: bool $mainfile true only for main HTML false and false for all embedded/linked files

add_image_to_list($baseurl, $url, &$list)   X-Ref
No description

guess_filename($url, $type)   X-Ref
No description

supported_returntypes()   X-Ref
No description

get_file_source_info($url)   X-Ref
Return the source information

param: stdClass $url
return: string|null

supported_filetypes()   X-Ref
file types supported by url downloader plugin

return: array

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

return: bool



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1