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

Files

file  access.php
 Plugin capabilities.
 
file  install.php
 Installation for the URL repository.
 
file  lib.php
 This plugin is used to access files by providing an url.
 
file  lib.php
 URL repository data generator.
 
file  provider.php
 Privacy Subsystem implementation for repository_url.
 

Namespaces

namespace  repository_url\privacy
  
 

Classes

class  repository_url
 repository_url class A subclass of repository, which is used to download a file from a specific url More...
 
class  repository_url\privacy\provider
 Privacy Subsystem for repository_url implementing null_provider. More...
 
class  repository_url_generator
 

Functions

 xmldb_repository_url_install ()
 Create a default instance of the URL repository. More...
 

Variables

 $capabilities
 

Detailed Description

Function Documentation

◆ xmldb_repository_url_install()

xmldb_repository_url_install ( )

Create a default instance of the URL repository.

Return values
boolA status indicating success or failure

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'repository/url: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