Class HTMLPurifier_CSSDefinition

InheritanceHTMLPurifier_CSSDefinition » HTMLPurifier_Definition

Defines allowed CSS attributes and what their values are.

See also HTMLPurifier_HTMLDefinition.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$info Assoc array of attribute name to definition object. HTMLPurifier_CSSDefinition
$optimized 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. HTMLPurifier_Definition
$setup Has setup() been called yet? HTMLPurifier_Definition
$type HTMLPurifier_CSSDefinition

Public Methods

Hide inherited methods

MethodDescriptionDefined By
setup() Setup function that aborts if already setup HTMLPurifier_Definition

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
doSetup() Constructs the info array. The meat of this class. HTMLPurifier_CSSDefinition
doSetupProprietary() HTMLPurifier_CSSDefinition
doSetupTricky() HTMLPurifier_CSSDefinition
doSetupTrusted() HTMLPurifier_CSSDefinition
setupConfigStuff() Performs extra config-based processing. Based off of HTMLPurifier_HTMLDefinition. HTMLPurifier_CSSDefinition

Property Details

$info public property
public $info = []
$type public property
public $type 'CSS'

Method Details

doSetup() protected method

Constructs the info array. The meat of this class.

protected void doSetup ( $config )
$config HTMLPurifier_Config
doSetupProprietary() protected method

protected void doSetupProprietary ( $config )
$config HTMLPurifier_Config
doSetupTricky() protected method

protected void doSetupTricky ( $config )
$config HTMLPurifier_Config
doSetupTrusted() protected method

protected void doSetupTrusted ( $config )
$config HTMLPurifier_Config
setupConfigStuff() protected method

Performs extra config-based processing. Based off of HTMLPurifier_HTMLDefinition.

protected void setupConfigStuff ( $config )
$config HTMLPurifier_Config