Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
atto_h5p

Files

file  access.php
 H5P Atto button capabilities.
 
file  lib.php
 Atto text editor integration version file.
 
file  provider.php
 Privacy Subsystem implementation for atto_h5p.
 
file  version.php
 Atto text editor integration version file.
 

Namespaces

 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. More...
 
 atto_h5p_strings_for_js ()
 Initialise the strings required for js.
 

Variables

 $capabilities
 
$plugin component = 'atto_h5p'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

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,
],
]
]
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
CONTEXT_MODULE
const CONTEXT_MODULE
Course module context level - one instance for each course module.
Definition: accesslib.php:130