Class HTMLPurifier_Config
Configuration object that triggers customizable behavior.
Warning: This class is strongly defined: that means that the class will fail if an undefined directive is retrieved or set.
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/Config.php
public
|
|
public static
Configured
|
#
create( mixed $config,
Convenience constructor that creates a config object based on a mixed var |
public static
|
#
inherit(
Creates a new config object that inherits from a previous one. |
public static
Default
|
|
public
|
|
public
|
|
public
|
#
getBatchSerial( $namespace $namespace )
Returns a md5 signature of a segment of the configuration object that uniquely identifies that particular configuration |
public
|
|
public
|
|
public
|
|
public
|
#
getHTMLDefinition( $raw $raw = false, $optimized $optimized = false )
Retrieves object reference to the HTML definition. |
public
|
#
getCSSDefinition( $raw $raw = false, $optimized $optimized = false )
Retrieves object reference to the CSS definition |
public
|
#
getURIDefinition( $raw $raw = false, $optimized $optimized = false )
Retrieves object reference to the URI definition |
public
|
#
getDefinition( $type $type, $raw $raw = false, $optimized $optimized = false )
Retrieves a definition |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
#
getAllowedDirectivesForForm( $allowed $allowed, $schema = null )
Returns a list of array(namespace, directive) for all directives that are allowed in a web-form context as per an allowed namespaces/directives list. |
public static
|
#
loadArrayFromForm( $array $array, $index $index = false, $allowed $allowed = true, $mq_fix $mq_fix = true, $schema $schema = null )
Loads configuration values from $_GET/$_POST that were posted via ConfigForm |
public
|
#
mergeArrayFromForm( $array, $index = false, $allowed = true, $mq_fix = true )
Merges in configuration values from $_GET/$_POST to object. NOT STATIC. |
public static
|
#
prepareArrayFromForm( $array, $index = false, $allowed = true, $mq_fix = true, $schema = null )
Prepares an array from a form into something usable for the more strict parts of HTMLPurifier_Config |
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
triggerError( $msg, $no )
Produces a nicely formatted error message by supplying the stack frame information OUTSIDE of HTMLPurifier_Config. |
public
|
public
string
|
$version | '4.3.0' |
#
HTML Purifier's version |
public
boolean
|
$autoFinalize | true |
#
Bool indicator whether or not to automatically finalize the object if a read operation is done |
protected
array
|
$serials | array() |
#
Namespace indexed array of serials for specific namespaces (see getSerial() for more info). |
protected
|
$serial |
|
#
Serial for entire configuration object |
protected
|
$parser |
|
#
Parser for variables |
public
|
$def |
|
#
Reference HTMLPurifier_ConfigSchema for value checking |
protected
|
$definitions |
|
#
Indexed array of definitions |
protected
boolean
|
$finalized | false |
#
Bool indicator whether or not config is finalized |
protected
|
$plist |
|
#
Property list containing configuration directives. |
public
boolean
|
$chatty | true |
#
Set to false if you do not want line and file numbers in errors (useful when unit testing). This will also compress some errors and exceptions. |