Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
filter_displayh5p

Namespaces

namespace  filter_displayh5p\privacy
  
 

Classes

class  filter_displayh5p
 Display H5P filter. More...
 
class  filter_displayh5p\privacy\provider
 Privacy Subsystem for filter_displayh5p implementing null_provider. More...
 

Functions

 filter_displayh5p_reorder ()
 Move up the displayh5p filter over urltolink and activitynames filters to works properly.
 
 filterobject_prepare_replacement_callback ($tagbegin, $tagend, $urlmodifier, $canbeedited, $ish5plink)
 Callback used by filterobject / filter_phrases.
 
 xmldb_filter_displayh5p_install ()
 Enable displayh5p filter by default to render H5P contents.
 
 xmldb_filter_displayh5p_upgrade ($oldversion)
 xmldb_filter_displayh5p_upgrade
 

Variables

 $plugin = 2023041800
 
$plugin component = 'filter_displayh5p'
 
$plugin version = 2023042400
 

Detailed Description

Function Documentation

◆ filter_displayh5p_reorder()

filter_displayh5p_reorder ( )

Move up the displayh5p filter over urltolink and activitynames filters to works properly.

Also, displayh5p have to be enabled in order to display H5P content.

Return values
void

◆ filterobject_prepare_replacement_callback()

filterobject_prepare_replacement_callback ( $tagbegin,
$tagend,
$urlmodifier,
$canbeedited,
$ish5plink )

Callback used by filterobject / filter_phrases.

Parameters
string$tagbeginHTML to insert before any match
string$tagendHTML to insert after any match
string$urlmodifierstring to add to the match URL
bool$canbeeditedWhether the content can be modified or not (to display a link to edit it or not).
bool$ish5plinkWhether the original content comes from an H5P link or not.
Return values
array[$hreftagbegin, $hreftagend, $replacementphrase] for filterobject.

◆ xmldb_filter_displayh5p_install()

xmldb_filter_displayh5p_install ( )

Enable displayh5p filter by default to render H5P contents.

Exceptions
coding_exception

◆ xmldb_filter_displayh5p_upgrade()

xmldb_filter_displayh5p_upgrade ( $oldversion)

xmldb_filter_displayh5p_upgrade

Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult