Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
atto_h5p

Namespaces

namespace  atto_h5p\privacy
  
 

Classes

class  atto_h5p\privacy\provider
 Privacy Subsystem for atto_h5p implementing null_provider. More...
 

Functions

 atto_h5p_params_for_js ($elementid, $options, $fpoptions)
 Set params for this button.
 
 atto_h5p_strings_for_js ()
 Initialise the strings required for js.
 

Variables

 $capabilities
 
 $plugin = 2023100400
 
$plugin component = 'atto_h5p'
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ atto_h5p_params_for_js()

atto_h5p_params_for_js ( $elementid,
$options,
$fpoptions )

Set params for this button.

Parameters
string$elementid
stdClass$options- the options for the editor, including the context.
stdClass$fpoptions- unused.

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= [
'atto/h5p:addembed' => [
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => [
'editingteacher' => 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