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

Files

 
file  filter.php
 HTML tidy text filter.
 
file  filter.php
 Moodle - Filter for converting TeX expressions to cached gif images.
 
file  filter.php
 Media plugin filtering.
 
file  filter.php
 This filter provides automatic linking to glossary entries, aliases and categories when found inside every Moodle text.
 
file  filter.php
 Filter converting emoticon texts into images.
 
file  filter.php
 Basic email protection filter.
 
file  filter.php
 This filter provides automatic linking to database activity entries when found inside every Moodle text.
 
file  filter.php
 Censorship filtering.
 
file  filter.php
 Moodle - Filter for converting simple calculator-type algebraic expressions to cached gif images.
 
file  filter.php
 This filter provides automatic linking to activities when its name (title) is found inside every Moodle text.
 
file  install.php
 Tex filter post install hook.
 
file  install.php
 Media filter post install hook.
 
file  install.php
 Mathjax filter post install hook.
 
file  install.php
 Glossary filter post install hook.
 
file  install.php
 Database activity filter post install hook.
 
file  lib.php
 TeX filter library functions.
 
file  settings.php
 TeX filter settings.
 
file  settings.php
 @subpackage emoticon
 
file  upgrade.php
 TeX filter upgrade code.
 
file  upgrade.php
 Manual authentication plugin upgrade code.
 
 
file  version.php
 Version details.
 
file  version.php
 Tex filter.
 
file  version.php
 Version details.
 
file  version.php
 Media filter.
 
file  version.php
 Glossary filter version information.
 
file  version.php
 Version information.
 
file  version.php
 Version details.
 
file  version.php
 Data activity filter version information.
 
file  version.php
 Version details.
 
file  version.php
 Version details.
 
file  version.php
 Version details.
 

Classes

class  filter_activitynames
 Activity name filtering. More...
 
class  filter_algebra
 
class  filter_censor
 
class  filter_data
 Database activity filtering. More...
 
class  filter_emailprotect
 This class looks for email addresses in Moodle text and hides them using the Moodle obfuscate_text function. More...
 
class  filter_emoticon
 
class  filter_glossary
 Glossary linking filter class. More...
 
class  filter_mediaplugin
 Automatic media embedding filter class. More...
 
class  filter_tex
 TeX filtering class. More...
 
class  filter_tidy
 
class  filter_urltolink
 

Functions

 filter_algebra_image ($imagefile, $tex="", $height="", $width="", $align="middle")
 
 filter_emailprotect_alter_email ($matches)
 
 filter_emailprotect_alter_mailto ($matches)
 
 filter_tex_get_cmd ($pathname, $texexp)
 
 filter_tex_get_executable ($debug=false)
 
 filter_tex_sanitize_formula ($texexp)
 
 filter_tex_updatedcallback ($name)
 Purge all caches when settings changed.
 
 filter_text_image ($imagefile, $tex, $height, $width, $align, $alt)
 Create TeX image link. More...
 
 filter_urltolink_img_callback ($link)
 Change links to images into embedded images. More...
 
 xmldb_filter_data_install ()
 
 xmldb_filter_glossary_install ()
 
 xmldb_filter_mathjaxloader_install ()
 
 xmldb_filter_mediaplugin_install ()
 
 xmldb_filter_mediaplugin_upgrade ($oldversion)
 
 xmldb_filter_tex_install ()
 
 xmldb_filter_tex_upgrade ($oldversion)
 

Variables

$plugin component = 'filter_activitynames'
 
$plugin component = 'filter_algebra'
 
$plugin component = 'filter_censor'
 
$plugin component = 'filter_data'
 
$plugin component = 'filter_emailprotect'
 
$plugin component = 'filter_emoticon'
 
$plugin component = 'filter_glossary'
 
$plugin component = 'filter_mediaplugin'
 
$plugin component = 'filter_multilang'
 
$plugin component = 'filter_tex'
 
$plugin component = 'filter_tidy'
 
$plugin component = 'filter_urltolink'
 
$plugin dependencies = array('mod_data' => 2019111200)
 
$plugin dependencies = array('mod_glossary' => 2019111200)
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ filter_text_image()

filter_text_image (   $imagefile,
  $tex,
  $height,
  $width,
  $align,
  $alt 
)

Create TeX image link.

Parameters
string$imagefilename of file
string$texTeX notation (html entities already decoded)
int$heightO means automatic
int$widthO means automatic
string$align
string$alt
Return values
stringHTML markup

◆ filter_urltolink_img_callback()

filter_urltolink_img_callback (   $link)

Change links to images into embedded images.

This plugin is intended for automatic conversion of image URLs when FORMAT_MOODLE used.

Parameters
$link
Return values
string

◆ xmldb_filter_mediaplugin_upgrade()

xmldb_filter_mediaplugin_upgrade (   $oldversion)
Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult

◆ xmldb_filter_tex_upgrade()

xmldb_filter_tex_upgrade (   $oldversion)
Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult