Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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 = 2024041600
 
$plugin component = 'atto_h5p'
 
$plugin version = 2024042200
 

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