Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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
 This plugin is used to access youtube videos.
 
file  lib.php
 Youtube repository data generator.
 
file  provider.php
 Privacy Subsystem implementation for repository_youtube.
 

Namespaces

namespace  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
)
)
)
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