Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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