Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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
 Youtube repository data generator class. More...
 

Functions

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

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.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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