Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
HTMLPurifier_Definition Class Reference
Inheritance diagram for HTMLPurifier_Definition:
HTMLPurifier_CSSDefinition HTMLPurifier_HTMLDefinition HTMLPurifier_URIDefinition

Public Member Functions

 setup ($config)
 Setup function that aborts if already setup.
 

Public Attributes

 $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
 What type of definition is it? @type string.
 

Protected Member Functions

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

Member Function Documentation

◆ doSetup()

HTMLPurifier_Definition::doSetup ( $config)
abstractprotected

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

Parameters
HTMLPurifier_Config$config

Reimplemented in HTMLPurifier_CSSDefinition, HTMLPurifier_HTMLDefinition, and HTMLPurifier_URIDefinition.

◆ setup()

HTMLPurifier_Definition::setup ( $config)

Setup function that aborts if already setup.

Parameters
HTMLPurifier_Config$config

Member Data Documentation

◆ $optimized

HTMLPurifier_Definition::$optimized = null

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: