Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_URIDefinition Class Reference
Inheritance diagram for HTMLPurifier_URIDefinition:
HTMLPurifier_Definition

Public Member Functions

 addFilter ($filter, $config)
 
 filter (&$uri, $config, $context)
 
 getDefaultScheme ($config, $context)
 
 postFilter (&$uri, $config, $context)
 
 registerFilter ($filter)
 
 setup ($config)
 Setup function that aborts if already setup.
 

Public Attributes

 $base
 
 $defaultScheme
 Name of default scheme based on URI.DefaultScheme and URI.Base.
 
 $host
 String host to consider "home" base, derived off of $base.
 
 $optimized = null
 If true, write out the final definition object to the cache after setup.
 
 $setup = false
 Has setup() been called yet? @type bool.
 
 $type = 'URI'
 

Protected Member Functions

 doSetup ($config)
 Sets up the definition object into the final form, something not done by the constructor.
 
 setupFilters ($config)
 
 setupMemberVariables ($config)
 

Protected Attributes

 $filters = array()
 
 $postFilters = array()
 
 $registeredFilters = array()
 

Member Function Documentation

◆ doSetup()

HTMLPurifier_URIDefinition::doSetup ( $config)
protected

Sets up the definition object into the final form, something not done by the constructor.

Parameters
HTMLPurifier_Config$config

Reimplemented from HTMLPurifier_Definition.

◆ setup()

HTMLPurifier_Definition::setup ( $config)
inherited

Setup function that aborts if already setup.

Parameters
HTMLPurifier_Config$config

Member Data Documentation

◆ $optimized

HTMLPurifier_Definition::$optimized = null
inherited

If true, write out the final definition object to the cache after setup.

This will be true only if all invocations to get a raw definition object are also optimized. This does not cause file system thrashing because on subsequent calls the cached object is used and any writes to the raw definition object are short circuited. See enduser-customize.html for the high-level picture. @type bool


The documentation for this class was generated from the following file: