Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
repository_onedrive

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

Variables

 $capabilities
 
 $definitions
 
 $plugin = 2024041600
 
 $tasks
 
$plugin component = 'repository_onedrive'
 
$plugin version = 2024042200
 

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(
'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' => '*'
),
)