Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
block_tag_youtube

Directories

directory classes
  
 

Namespaces

namespace  block_tag_youtube\privacy
 Privacy Subsystem implementation for block_tag_youtube.
 

Classes

class  block_tag_youtube
 
class  block_tag_youtube\privacy\provider
 Privacy Subsystem for block_tag_youtube implementing null_provider. More...
 
class  block_tag_youtube_edit_form
 Form for editing tag_youtube block instances. More...
 

Functions

 xmldb_block_tag_youtube_install ()
 Tag Youtube block installation.
 
 xmldb_block_tag_youtube_upgrade ($oldversion)
 Upgrade code for the Tag Youtube block.
 

Variables

 $capabilities
 
 $plugin = 2023100400
 
$plugin component = 'block_tag_youtube'
 
const DEFAULT_NUMBER_OF_VIDEOS 5
 Tag youtube block.
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ xmldb_block_tag_youtube_install()

xmldb_block_tag_youtube_install ( )

Tag Youtube block installation.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Sets the install values for the tag_youtube entry in the block table.
Return values
void

◆ xmldb_block_tag_youtube_upgrade()

xmldb_block_tag_youtube_upgrade ( $oldversion)

Upgrade code for the Tag Youtube block.

Parameters
int$oldversion

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/tag_youtube:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
)
const RISK_SPAM
Capability allows users to add content others may see - see
Definition accesslib.php:147
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115
const RISK_XSS
Capability allows user to add scripted content - see
Definition accesslib.php:143
const CONTEXT_BLOCK
Block context level - one instance for each block, sticky blocks are tricky because ppl think they sh...
Definition accesslib.php:136

◆ DEFAULT_NUMBER_OF_VIDEOS

const DEFAULT_NUMBER_OF_VIDEOS 5

Tag youtube block.

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