Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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

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

Variables

 $capabilities
 
 $plugin = 2020060900
 
$plugin component = 'atto_h5p'
 
$plugin version = 2020061500
 

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