Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
repository_onedrive

Files

file  access.php
 Capability definitions for onedrive repository.
 
file  access.php
 Class for loading/storing access records from the DB.
 
file  caches.php
 Cache definitions.
 
file  lib.php
 Microsoft Live Skydrive Repository Plugin.
 
file  provider.php
 Privacy Subsystem implementation for repository_onedrive.
 
file  remove_temp_access_task.php
 A scheduled task.
 
file  rest.php
 Microsoft Graph API Rest Interface.
 
file  tasks.php
 Definition of repository_onedrive scheduled tasks.
 
file  upgrade.php
 Upgrade this plugin.
 
file  version.php
 Version details for onedrive repository.
 

Namespaces

 repository_onedrive
  
 
 repository_onedrive\privacy
  
 

Classes

class  repository_onedrive
 Microsoft onedrive repository plugin. More...
 
class  repository_onedrive\access
 Class for loading/storing issuer from the DB. More...
 
class  repository_onedrive\privacy\provider
 Privacy Subsystem for repository_onedrive implementing metadata and plugin providers. More...
 
class  repository_onedrive\remove_temp_access_task
 Simple task to delete temporary permission records. More...
 
class  repository_onedrive\rest
 Microsoft Graph API Rest Interface. More...
 

Functions

 repository_onedrive_oauth2_system_scopes (\core\oauth2\issuer $issuer)
 Callback to get the required scopes for system account. More...
 
 xmldb_repository_onedrive_upgrade ($oldversion)
 

Variables

 $capabilities
 
 $definitions
 
 $tasks
 
$plugin component = 'repository_onedrive'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ repository_onedrive_oauth2_system_scopes()

repository_onedrive_oauth2_system_scopes ( \core\oauth2\issuer  $issuer)

Callback to get the required scopes for system account.

Parameters
core\oauth2\issuer$issuer
Return values
string

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'repository/onedrive:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'user' => CAP_ALLOW
)
)
)

◆ $definitions

$definitions
Initial value:
= array(
'folder' => array(
'simplekeys' => false,
'simpledata' => true,
'staticacceleration' => true,
'staticaccelerationsize' => 10,
'canuselocalstore' => true
),
)

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => 'repository_onedrive\remove_temp_access_task',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
'day' => '*',
'dayofweek' => 'R',
'month' => '*'
),
)
cache_store\MODE_APPLICATION
const MODE_APPLICATION
Application caches.
Definition: store.php:138
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
CONTEXT_MODULE
const CONTEXT_MODULE
Course module context level - one instance for each course module.
Definition: accesslib.php:130