Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
repository_onedrive

Namespaces

namespace  repository_onedrive
 Class for loading/storing access records from the DB.
 
namespace  repository_onedrive\privacy
 Privacy Subsystem implementation for repository_onedrive.
 

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.
 
 xmldb_repository_onedrive_upgrade ($oldversion)
 Upgrade this plugin.
 

Variables

 $capabilities
 Capability definitions for onedrive repository.
 
 $definitions
 
 $plugin = 2023100400
 
 $tasks
 
$plugin component = 'repository_onedrive'
 
$plugin version = 2023100900
 

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

◆ xmldb_repository_onedrive_upgrade()

xmldb_repository_onedrive_upgrade ( $oldversion)

Upgrade this plugin.

Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult

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

Capability definitions for onedrive repository.

Author
Dan Poltawski dan.p.nosp@m.olta.nosp@m.wski@.nosp@m.luns.nosp@m..net..nosp@m.uk
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

◆ $definitions

$definitions
Initial value:
= array(
'folder' => array(
'mode' => cache_store::MODE_APPLICATION,
'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' => '*'
),
)