Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Microsoft Live Skydrive Repository Plugin

Author: Dan Poltawski <dan.poltawski@luns.net.uk>
Copyright: 2012 Lancaster University Network Services Ltd
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 215 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 repository/skydrive/microsoftliveapi.php

Defines 1 class

repository_skydrive:: (11 methods):
  __construct()
  check_login()
  print_login()
  get_listing()
  get_file()
  get_type_option_names()
  type_config_form()
  logout()
  global_search()
  supported_filetypes()
  supported_returntypes()


Class: repository_skydrive  - X-Ref

Microsoft skydrive repository plugin.

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

param: int $repositoryid repository instance id.
param: int|stdClass $context a context id or context object.
param: array $options repository options.

check_login()   X-Ref
Checks whether the user is logged in or not.

return: bool true when logged in

print_login()   X-Ref
Print the login form, if required

return: array of login options

get_listing($path='', $page = '')   X-Ref
Given a path, and perhaps a search, get a list of files.

See details on {@link http://docs.moodle.org/dev/Repository_plugins}

param: string $path identifier for current path
param: string $page the page number of file list
return: array list of files including meta information as specified by parent.

get_file($id, $filename = '')   X-Ref
Downloads a repository file and saves to a path.

param: string $id identifier of file
param: string $filename to save file as
return: array with keys:

get_type_option_names()   X-Ref
Return names of the options to display in the repository form

return: array of option names

type_config_form($mform, $classname = 'repository')   X-Ref
Setup repistory form.

param: moodleform $mform Moodle form (passed by reference)
param: string $classname repository class name

logout()   X-Ref
Logout from repository instance and return
login form.

return: page to display

global_search()   X-Ref
This repository doesn't support global search.

return: bool if supports global search

supported_filetypes()   X-Ref
This repoistory supports any filetype.

return: string '*' means this repository support any files

supported_returntypes()   X-Ref
This repostiory only supports internal files

return: int return type bitmask supported