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

Files

file  access.php
 Plugin capabilities.
 
file  install.php
 Installation file for the Youtube repository.
 
file  lib.php
 Youtube repository data generator.
 
file  lib.php
 This plugin is used to access youtube videos.
 
file  provider.php
 Privacy Subsystem implementation for repository_youtube.
 

Namespaces

 repository_youtube\privacy
  
 

Classes

class  repository_youtube
 repository_youtube class More...
 
class  repository_youtube\privacy\provider
 Privacy Subsystem for repository_youtube implementing metadata, plugin providers. More...
 
class  repository_youtube_generator
 

Functions

 xmldb_repository_youtube_install ()
 This was supposed to be the installer script for the Youtube repository. More...
 

Variables

 $capabilities
 

Detailed Description

Function Documentation

◆ xmldb_repository_youtube_install()

xmldb_repository_youtube_install ( )

This was supposed to be the installer script for the Youtube repository.

However, since the Youtube repository is disabled in new Moodle installations from 3.0, and since we cannot just delete this file, the function's contents has been replaced to just return true. See https://tracker.moodle.org/browse/MDL-50572 for more details.

Return values
boolReturn true.

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'repository/youtube:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'user' => CAP_ALLOW
)
)
)
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