Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
repository_onedrive

Files

file  access.php
 Class for loading/storing access records from the DB.
 
file  access.php
 Capability definitions for onedrive repository.
 
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

namespace  repository_onedrive
  
 
namespace  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
 
 $plugin = 2020060900
 
 $tasks
 
$plugin component = 'repository_onedrive'
 
$plugin version = 2020061500
 

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
)
)
)
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
const CONTEXT_MODULE
Course module context level - one instance for each course module.
Definition: accesslib.php:130

◆ $definitions

$definitions
Initial value:
= array(
'folder' => array(
'simplekeys' => false,
'simpledata' => true,
'staticacceleration' => true,
'staticaccelerationsize' => 10,
'canuselocalstore' => true
),
)
const MODE_APPLICATION
Application caches.
Definition: store.php:138

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => 'repository_onedrive\remove_temp_access_task',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
'day' => '*',
'dayofweek' => 'R',
'month' => '*'
),
)