Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
HTMLPurifier_CSSDefinition Class Reference
Inheritance diagram for HTMLPurifier_CSSDefinition:
HTMLPurifier_Definition

Public Member Functions

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

Public Attributes

 $info = array()
 Assoc array of attribute name to definition object.
 
 $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 = 'CSS'
 

Protected Member Functions

 doSetup ($config)
 Constructs the info array.
 
 doSetupProprietary ($config)
 
 doSetupTricky ($config)
 
 doSetupTrusted ($config)
 
 setupConfigStuff ($config)
 Performs extra config-based processing.
 

Member Function Documentation

◆ doSetup()

HTMLPurifier_CSSDefinition::doSetup ( $config)
protected

Constructs the info array.

The meat of this class.

Parameters
HTMLPurifier_Config$config

Reimplemented from HTMLPurifier_Definition.

◆ doSetupProprietary()

HTMLPurifier_CSSDefinition::doSetupProprietary ( $config)
protected
Parameters
HTMLPurifier_Config$config

◆ doSetupTricky()

HTMLPurifier_CSSDefinition::doSetupTricky ( $config)
protected
Parameters
HTMLPurifier_Config$config

◆ doSetupTrusted()

HTMLPurifier_CSSDefinition::doSetupTrusted ( $config)
protected
Parameters
HTMLPurifier_Config$config

◆ setup()

HTMLPurifier_Definition::setup ( $config)
inherited

Setup function that aborts if already setup.

Parameters
HTMLPurifier_Config$config

◆ setupConfigStuff()

HTMLPurifier_CSSDefinition::setupConfigStuff ( $config)
protected

Performs extra config-based processing.

Based off of HTMLPurifier_HTMLDefinition.

Parameters
HTMLPurifier_Config$config
Todo
Refactor duplicate elements into common class (probably using composition, not inheritance).

Member Data Documentation

◆ $info

HTMLPurifier_CSSDefinition::$info = array()

Assoc array of attribute name to definition object.

@type HTMLPurifier_AttrDef[]

◆ $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: