Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Classes | Functions | Variables
filter

Files

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

Functions

 filter_algebra_image ($imagefile, $tex="", $height="", $width="", $align="middle")
 
 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 = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
 $plugin = 2020060900
 
$plugin component = 'filter_activitynames'
 
$plugin component = 'filter_algebra'
 
$plugin component = 'filter_censor'
 
$plugin component = 'filter_data'
 
$plugin component = 'filter_emailprotect'
 
$plugin component = 'filter_glossary'
 
$plugin component = 'filter_mediaplugin'
 
$plugin component = 'filter_multilang'
 
$plugin component = 'filter_tex'
 
$plugin component = 'filter_tidy'
 
$plugin dependencies = array('mod_data' => 2020060900)
 
$plugin dependencies = array('mod_glossary' => 2020060900)
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 
$plugin version = 2020061500
 

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