Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • ActionFormModel
  • ArrayUtil
  • ArrayValidator
  • AssociatedMediaBehavior
  • AuxLib
  • Changelog
  • DetailView
  • EncryptUtilTmp
  • EventsWidgetFieldFormatter
  • FailedLogins
  • FieldFormatter
  • FieldFormatterBase
  • FieldInputRenderer
  • FileFieldBehavior
  • FiltersForm
  • FilterUtil
  • FineDiff
  • FineDiffCopyOp
  • FineDiffDeleteOp
  • FineDiffInsertOp
  • FineDiffOp
  • FineDiffOps
  • FineDiffReplaceOp
  • GlobalCSSFormModel
  • GlobalImportFormModel
  • GoogleAuthenticator
  • HTML5
  • HTML5TreeConstructer
  • HTMLPurifier
  • HTMLPurifier_Arborize
  • HTMLPurifier_AttrCollections
  • HTMLPurifier_AttrDef
  • HTMLPurifier_AttrDef_Clone
  • HTMLPurifier_AttrDef_CSS
  • HTMLPurifier_AttrDef_CSS_AlphaValue
  • HTMLPurifier_AttrDef_CSS_Background
  • HTMLPurifier_AttrDef_CSS_BackgroundPosition
  • HTMLPurifier_AttrDef_CSS_Border
  • HTMLPurifier_AttrDef_CSS_Color
  • HTMLPurifier_AttrDef_CSS_Composite
  • HTMLPurifier_AttrDef_CSS_DenyElementDecorator
  • HTMLPurifier_AttrDef_CSS_Filter
  • HTMLPurifier_AttrDef_CSS_Font
  • HTMLPurifier_AttrDef_CSS_FontFamily
  • HTMLPurifier_AttrDef_CSS_Ident
  • HTMLPurifier_AttrDef_CSS_ImportantDecorator
  • HTMLPurifier_AttrDef_CSS_Length
  • HTMLPurifier_AttrDef_CSS_ListStyle
  • HTMLPurifier_AttrDef_CSS_Multiple
  • HTMLPurifier_AttrDef_CSS_Number
  • HTMLPurifier_AttrDef_CSS_Percentage
  • HTMLPurifier_AttrDef_CSS_TextDecoration
  • HTMLPurifier_AttrDef_CSS_URI
  • HTMLPurifier_AttrDef_Enum
  • HTMLPurifier_AttrDef_HTML_Bool
  • HTMLPurifier_AttrDef_HTML_Class
  • HTMLPurifier_AttrDef_HTML_Color
  • HTMLPurifier_AttrDef_HTML_FrameTarget
  • HTMLPurifier_AttrDef_HTML_ID
  • HTMLPurifier_AttrDef_HTML_Length
  • HTMLPurifier_AttrDef_HTML_LinkTypes
  • HTMLPurifier_AttrDef_HTML_MultiLength
  • HTMLPurifier_AttrDef_HTML_Nmtokens
  • HTMLPurifier_AttrDef_HTML_Pixels
  • HTMLPurifier_AttrDef_Integer
  • HTMLPurifier_AttrDef_Lang
  • HTMLPurifier_AttrDef_Switch
  • HTMLPurifier_AttrDef_Text
  • HTMLPurifier_AttrDef_URI
  • HTMLPurifier_AttrDef_URI_Email
  • HTMLPurifier_AttrDef_URI_Email_SimpleCheck
  • HTMLPurifier_AttrDef_URI_Host
  • HTMLPurifier_AttrDef_URI_IPv4
  • HTMLPurifier_AttrDef_URI_IPv6
  • HTMLPurifier_AttrTransform
  • HTMLPurifier_AttrTransform_Background
  • HTMLPurifier_AttrTransform_BdoDir
  • HTMLPurifier_AttrTransform_BgColor
  • HTMLPurifier_AttrTransform_BoolToCSS
  • HTMLPurifier_AttrTransform_Border
  • HTMLPurifier_AttrTransform_EnumToCSS
  • HTMLPurifier_AttrTransform_ImgRequired
  • HTMLPurifier_AttrTransform_ImgSpace
  • HTMLPurifier_AttrTransform_Input
  • HTMLPurifier_AttrTransform_Lang
  • HTMLPurifier_AttrTransform_Length
  • HTMLPurifier_AttrTransform_Name
  • HTMLPurifier_AttrTransform_NameSync
  • HTMLPurifier_AttrTransform_Nofollow
  • HTMLPurifier_AttrTransform_SafeEmbed
  • HTMLPurifier_AttrTransform_SafeObject
  • HTMLPurifier_AttrTransform_SafeParam
  • HTMLPurifier_AttrTransform_ScriptRequired
  • HTMLPurifier_AttrTransform_TargetBlank
  • HTMLPurifier_AttrTransform_Textarea
  • HTMLPurifier_AttrTypes
  • HTMLPurifier_AttrValidator
  • HTMLPurifier_Bootstrap
  • HTMLPurifier_ChildDef
  • HTMLPurifier_ChildDef_Chameleon
  • HTMLPurifier_ChildDef_Custom
  • HTMLPurifier_ChildDef_Empty
  • HTMLPurifier_ChildDef_List
  • HTMLPurifier_ChildDef_Optional
  • HTMLPurifier_ChildDef_Required
  • HTMLPurifier_ChildDef_StrictBlockquote
  • HTMLPurifier_ChildDef_Table
  • HTMLPurifier_Config
  • HTMLPurifier_ConfigSchema
  • HTMLPurifier_ConfigSchema_Builder_ConfigSchema
  • HTMLPurifier_ConfigSchema_Builder_Xml
  • HTMLPurifier_ConfigSchema_Interchange
  • HTMLPurifier_ConfigSchema_Interchange_Directive
  • HTMLPurifier_ConfigSchema_Interchange_Id
  • HTMLPurifier_ConfigSchema_InterchangeBuilder
  • HTMLPurifier_ConfigSchema_Validator
  • HTMLPurifier_ConfigSchema_ValidatorAtom
  • HTMLPurifier_ContentSets
  • HTMLPurifier_Context
  • HTMLPurifier_CSSDefinition
  • HTMLPurifier_Definition
  • HTMLPurifier_DefinitionCache
  • HTMLPurifier_DefinitionCache_Decorator
  • HTMLPurifier_DefinitionCache_Decorator_Cleanup
  • HTMLPurifier_DefinitionCache_Decorator_Memory
  • HTMLPurifier_DefinitionCache_Null
  • HTMLPurifier_DefinitionCache_Serializer
  • HTMLPurifier_DefinitionCacheFactory
  • HTMLPurifier_Doctype
  • HTMLPurifier_DoctypeRegistry
  • HTMLPurifier_ElementDef
  • HTMLPurifier_Encoder
  • HTMLPurifier_EntityLookup
  • HTMLPurifier_EntityParser
  • HTMLPurifier_ErrorCollector
  • HTMLPurifier_ErrorStruct
  • HTMLPurifier_Filter
  • HTMLPurifier_Filter_ExtractStyleBlocks
  • HTMLPurifier_Filter_YouTube
  • HTMLPurifier_Generator
  • HTMLPurifier_HTMLDefinition
  • HTMLPurifier_HTMLModule
  • HTMLPurifier_HTMLModule_Bdo
  • HTMLPurifier_HTMLModule_CommonAttributes
  • HTMLPurifier_HTMLModule_Edit
  • HTMLPurifier_HTMLModule_Forms
  • HTMLPurifier_HTMLModule_Hypertext
  • HTMLPurifier_HTMLModule_Iframe
  • HTMLPurifier_HTMLModule_Image
  • HTMLPurifier_HTMLModule_Legacy
  • HTMLPurifier_HTMLModule_List
  • HTMLPurifier_HTMLModule_Name
  • HTMLPurifier_HTMLModule_Nofollow
  • HTMLPurifier_HTMLModule_NonXMLCommonAttributes
  • HTMLPurifier_HTMLModule_Object
  • HTMLPurifier_HTMLModule_Presentation
  • HTMLPurifier_HTMLModule_Proprietary
  • HTMLPurifier_HTMLModule_Ruby
  • HTMLPurifier_HTMLModule_SafeEmbed
  • HTMLPurifier_HTMLModule_SafeObject
  • HTMLPurifier_HTMLModule_SafeScripting
  • HTMLPurifier_HTMLModule_Scripting
  • HTMLPurifier_HTMLModule_StyleAttribute
  • HTMLPurifier_HTMLModule_Tables
  • HTMLPurifier_HTMLModule_Target
  • HTMLPurifier_HTMLModule_TargetBlank
  • HTMLPurifier_HTMLModule_Text
  • HTMLPurifier_HTMLModule_Tidy
  • HTMLPurifier_HTMLModule_Tidy_Name
  • HTMLPurifier_HTMLModule_Tidy_Proprietary
  • HTMLPurifier_HTMLModule_Tidy_Strict
  • HTMLPurifier_HTMLModule_Tidy_Transitional
  • HTMLPurifier_HTMLModule_Tidy_XHTML
  • HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4
  • HTMLPurifier_HTMLModule_XMLCommonAttributes
  • HTMLPurifier_HTMLModuleManager
  • HTMLPurifier_IDAccumulator
  • HTMLPurifier_Injector
  • HTMLPurifier_Injector_AutoParagraph
  • HTMLPurifier_Injector_DisplayLinkURI
  • HTMLPurifier_Injector_Linkify
  • HTMLPurifier_Injector_PurifierLinkify
  • HTMLPurifier_Injector_RemoveEmpty
  • HTMLPurifier_Injector_RemoveSpansWithoutAttributes
  • HTMLPurifier_Injector_SafeObject
  • HTMLPurifier_Language
  • HTMLPurifier_Language_en_x_test
  • HTMLPurifier_LanguageFactory
  • HTMLPurifier_Length
  • HTMLPurifier_Lexer
  • HTMLPurifier_Lexer_DirectLex
  • HTMLPurifier_Lexer_DOMLex
  • HTMLPurifier_Lexer_PH5P
  • HTMLPurifier_Node
  • HTMLPurifier_Node_Comment
  • HTMLPurifier_Node_Element
  • HTMLPurifier_Node_Text
  • HTMLPurifier_PercentEncoder
  • HTMLPurifier_Printer
  • HTMLPurifier_Printer_ConfigForm
  • HTMLPurifier_Printer_ConfigForm_bool
  • HTMLPurifier_Printer_ConfigForm_default
  • HTMLPurifier_Printer_ConfigForm_NullDecorator
  • HTMLPurifier_Printer_CSSDefinition
  • HTMLPurifier_Printer_HTMLDefinition
  • HTMLPurifier_PropertyList
  • HTMLPurifier_PropertyListIterator
  • HTMLPurifier_Queue
  • HTMLPurifier_Strategy
  • HTMLPurifier_Strategy_Composite
  • HTMLPurifier_Strategy_Core
  • HTMLPurifier_Strategy_FixNesting
  • HTMLPurifier_Strategy_MakeWellFormed
  • HTMLPurifier_Strategy_RemoveForeignElements
  • HTMLPurifier_Strategy_ValidateAttributes
  • HTMLPurifier_StringHash
  • HTMLPurifier_StringHashParser
  • HTMLPurifier_TagTransform
  • HTMLPurifier_TagTransform_Font
  • HTMLPurifier_TagTransform_Simple
  • HTMLPurifier_Token
  • HTMLPurifier_Token_Comment
  • HTMLPurifier_Token_Empty
  • HTMLPurifier_Token_End
  • HTMLPurifier_Token_Start
  • HTMLPurifier_Token_Tag
  • HTMLPurifier_Token_Text
  • HTMLPurifier_TokenFactory
  • HTMLPurifier_UnitConverter
  • HTMLPurifier_URI
  • HTMLPurifier_URIDefinition
  • HTMLPurifier_URIFilter
  • HTMLPurifier_URIFilter_DisableExternal
  • HTMLPurifier_URIFilter_DisableExternalResources
  • HTMLPurifier_URIFilter_DisableResources
  • HTMLPurifier_URIFilter_HostBlacklist
  • HTMLPurifier_URIFilter_MakeAbsolute
  • HTMLPurifier_URIFilter_Munge
  • HTMLPurifier_URIFilter_SafeIframe
  • HTMLPurifier_URIParser
  • HTMLPurifier_URIScheme
  • HTMLPurifier_URIScheme_data
  • HTMLPurifier_URIScheme_file
  • HTMLPurifier_URIScheme_ftp
  • HTMLPurifier_URIScheme_http
  • HTMLPurifier_URIScheme_https
  • HTMLPurifier_URIScheme_mailto
  • HTMLPurifier_URIScheme_news
  • HTMLPurifier_URIScheme_nntp
  • HTMLPurifier_URISchemeRegistry
  • HTMLPurifier_VarParser
  • HTMLPurifier_VarParser_Flexible
  • HTMLPurifier_VarParser_Native
  • HTMLPurifier_Zipper
  • JSONFieldsBehavior
  • JSONResponse
  • Markdown_Parser
  • MarkdownExtra_Parser
  • MediaFieldFormatter
  • MediaSelector
  • MobileActiveRecordFieldFormatter
  • MobileActivityFeed
  • MobileChartDashboard
  • MobileFieldFormatter
  • MobileFieldInputRenderer
  • ModuleModelNameValidator
  • MultiChildNode
  • MultiTypeAutocomplete
  • PasswordUtil
  • ProductFeature
  • ProfileWidgetLayout
  • QueryParamGenerator
  • RecordLimitBehavior
  • RecordView
  • RecordViewWidgetLayout
  • RelationshipsGridModel
  • RelationshipsJoin
  • RepairUserDataCommand
  • RequestUtil
  • RequiredIfNotSetValidator
  • ResponseUtil
  • RunMigrationScriptCommand
  • ServiceWebFormDesigner
  • Settings
  • StringUtil
  • TestEmailAction
  • TestEmailActionForm
  • ThemeGenerator
  • TimerUtil
  • TopicsFieldFormatter
  • TopicsWidgetLayout
  • TransactionalViewFieldFormatter
  • UrlUtil
  • ValidLinkValidator
  • WebFormDesigner
  • WebLeadFormDesigner
  • X2ActiveRecordBehavior
  • X2ActiveRecordFieldFormatter
  • X2ButtonColumn
  • X2ConditionList
  • X2ConsoleCommand
  • X2ControllerBehavior
  • X2DataColumn
  • X2DuplicateBehavior
  • X2Flashes
  • X2GridViewFieldFormatter
  • X2IPAddress
  • X2LeadsDataColumn
  • X2MergeableBehavior
  • X2MessageSource
  • X2MobileControllerBehavior
  • X2MobileProfileControllerBehavior
  • X2MobileQuotesControllerBehavior
  • X2MobileSiteControllerBehavior
  • X2MobileTopicsControllerBehavior
  • X2ModelConversionBehavior
  • X2ModelConversionWidget
  • X2ModelForeignKeyValidator
  • X2ModelUniqueIndexValidator
  • X2NonWebUser
  • X2StaticDropdown
  • X2StaticField
  • X2StaticFieldsBehavior
  • X2UrlManager
  • X2Validator
  • X2WidgetBehavior

Interfaces

  • AdminOwnedCredentials

Exceptions

  • CampaignMailingException
  • CodeExchangeException
  • GetCredentialsException
  • HTMLPurifier_ConfigSchema_Exception
  • HTMLPurifier_Exception
  • HTMLPurifier_VarParserException
  • Net_IDNA2_Exception
  • Net_IDNA2_Exception_Nameprep
  • NoRefreshTokenException
  • NoUserIdException
  • StringUtilException

Functions

  • checkCurrency
  • checkDNS
  • checkServerVar
  • checkTimezone
  • decodeQuotes
  • echoIcons
  • encodeQuotes
  • exceptionForError
  • getField
  • getLanguageName
  • getModuleTitle
  • handleReqError
  • handleReqException
  • htmlpurifier_filter_extractstyleblocks_muteerrorhandler
  • installer_t
  • installer_tr
  • isAllowedDir
  • mediaMigrationRrmdir
  • migrateMediaDir
  • printGraph
  • printR
  • renderFields
  • reqShutdown
  • RIP
  • translateOptions
  • tryGetRemote
  • Overview
  • Package
  • Class
  • Tree

Class HTMLPurifier_Config

Configuration object that triggers customizable behavior.

Note: Many classes that could (although many times don't) use the configuration object make it a mandatory parameter. This is because a configuration object should always be forwarded, otherwise, you run the risk of missing a parameter and then being stumped when a configuration directive doesn't work.
Warning: This class is strongly defined: that means that the class will fail if an undefined directive is retrieved or set.
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
Methods summary
public
# __construct( HTMLPurifier_ConfigSchema $definition, HTMLPurifier_PropertyList $parent = null )

Constructor

Constructor

Parameters

$definition
HTMLPurifier_ConfigSchema
$definition ConfigSchema that defines what directives are allowed.
$parent
HTMLPurifier_PropertyList
$parent
public static HTMLPurifier_Config
# create( mixed $config, HTMLPurifier_ConfigSchema $schema = null )

Convenience constructor that creates a config object based on a mixed var

Convenience constructor that creates a config object based on a mixed var

Parameters

$config
mixed
$config Variable that defines the state of the config object. Can be: a HTMLPurifier_Config() object, an array of directives based on loadArray(), or a string filename of an ini file.
$schema
HTMLPurifier_ConfigSchema
$schema Schema object

Returns

HTMLPurifier_Config
Configured object
public static HTMLPurifier_Config
# inherit( HTMLPurifier_Config $config )

Creates a new config object that inherits from a previous one.

Creates a new config object that inherits from a previous one.

Parameters

$config
HTMLPurifier_Config
$config Configuration object to inherit from.

Returns

HTMLPurifier_Config
object with $config as its parent.
public static HTMLPurifier_Config
# createDefault( )

Convenience constructor that creates a default configuration object.

Convenience constructor that creates a default configuration object.

Returns

HTMLPurifier_Config
default object.
public mixed
# get( string $key, mixed $a = null )

Retrieves a value from the configuration.

Retrieves a value from the configuration.

Parameters

$key
string
$key String key
$a
mixed
$a

Returns

mixed
public array
# getBatch( string $namespace )

Retrieves an array of directives to values from a given namespace

Retrieves an array of directives to values from a given namespace

Parameters

$namespace
string
$namespace String namespace

Returns

array
public string
# getBatchSerial( string $namespace )

Returns a SHA-1 signature of a segment of the configuration object that uniquely identifies that particular configuration

Returns a SHA-1 signature of a segment of the configuration object that uniquely identifies that particular configuration

Parameters

$namespace
string
$namespace Namespace to get serial for

Returns

string

Note

Revision is handled specially and is removed from the batch before processing!
public string
# getSerial( )

Returns a SHA-1 signature for the entire configuration object that uniquely identifies that particular configuration

Returns a SHA-1 signature for the entire configuration object that uniquely identifies that particular configuration

Returns

string
public
# getAll( )

Retrieves all directives, organized by namespace

Retrieves all directives, organized by namespace

Warning

This is a pretty inefficient function, avoid if you can
public
# set( string $key, mixed $value, mixed $a = null )

Sets a value to configuration.

Sets a value to configuration.

Parameters

$key
string
$key key
$value
mixed
$value value
$a
mixed
$a
public HTMLPurifier_HTMLDefinition
# getHTMLDefinition( boolean $raw = false, boolean $optimized = false )

Retrieves object reference to the HTML definition.

Retrieves object reference to the HTML definition.

Parameters

$raw
boolean
$raw Return a copy that has not been setup yet. Must be called before it's been setup, otherwise won't work.
$optimized
boolean
$optimized If true, this method may return null, to indicate that a cached version of the modified definition object is available and no further edits are necessary. Consider using maybeGetRawHTMLDefinition, which is more explicitly named, instead.

Returns

HTMLPurifier_HTMLDefinition
public HTMLPurifier_CSSDefinition
# getCSSDefinition( boolean $raw = false, boolean $optimized = false )

Retrieves object reference to the CSS definition

Retrieves object reference to the CSS definition

Parameters

$raw
boolean
$raw Return a copy that has not been setup yet. Must be called before it's been setup, otherwise won't work.
$optimized
boolean
$optimized If true, this method may return null, to indicate that a cached version of the modified definition object is available and no further edits are necessary. Consider using maybeGetRawCSSDefinition, which is more explicitly named, instead.

Returns

HTMLPurifier_CSSDefinition
public HTMLPurifier_URIDefinition
# getURIDefinition( boolean $raw = false, boolean $optimized = false )

Retrieves object reference to the URI definition

Retrieves object reference to the URI definition

Parameters

$raw
boolean
$raw Return a copy that has not been setup yet. Must be called before it's been setup, otherwise won't work.
$optimized
boolean
$optimized If true, this method may return null, to indicate that a cached version of the modified definition object is available and no further edits are necessary. Consider using maybeGetRawURIDefinition, which is more explicitly named, instead.

Returns

HTMLPurifier_URIDefinition
public HTMLPurifier_Definition
# getDefinition( string $type, boolean $raw = false, boolean $optimized = false )

Retrieves a definition

Retrieves a definition

Parameters

$type
string
$type Type of definition: HTML, CSS, etc
$raw
boolean
$raw Whether or not definition should be returned raw
$optimized
boolean
$optimized Only has an effect when $raw is true. Whether or not to return null if the result is already present in the cache. This is off by default for backwards compatibility reasons, but you need to do things this way in order to ensure that caching is done properly. Check out enduser-customize.html for more details. We probably won't ever change this default, as much as the maybe semantics is the "right thing to do."

Returns

HTMLPurifier_Definition

Throws

HTMLPurifier_Exception
public
# maybeGetRawDefinition( mixed $name )
public
# maybeGetRawHTMLDefinition( )
public
# maybeGetRawCSSDefinition( )
public
# maybeGetRawURIDefinition( )
public
# loadArray( array $config_array )

Loads configuration values from an array with the following structure: Namespace.Directive => Value

Loads configuration values from an array with the following structure: Namespace.Directive => Value

Parameters

$config_array
array
$config_array Configuration associative array
public static array
# getAllowedDirectivesForForm( array $allowed, HTMLPurifier_ConfigSchema $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.

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.

Parameters

$allowed
array
$allowed List of allowed namespaces/directives
$schema
HTMLPurifier_ConfigSchema
$schema Schema to use, if not global copy

Returns

array
public static mixed
# loadArrayFromForm( array $array, string|boolean $index = false, array|boolean $allowed = true, boolean $mq_fix = true, HTMLPurifier_ConfigSchema $schema = null )

Loads configuration values from $_GET/$_POST that were posted via ConfigForm

Loads configuration values from $_GET/$_POST that were posted via ConfigForm

Parameters

$array
array
$array $_GET or $_POST array to import
$index
string|boolean
$index Index/name that the config variables are in
$allowed
array|boolean
$allowed List of allowed namespaces/directives
$mq_fix
boolean
$mq_fix Boolean whether or not to enable magic quotes fix
$schema
HTMLPurifier_ConfigSchema
$schema Schema to use, if not global copy

Returns

mixed
public
# mergeArrayFromForm( array $array, string|boolean $index = false, array|boolean $allowed = true, boolean $mq_fix = true )

Merges in configuration values from $_GET/$_POST to object. NOT STATIC.

Merges in configuration values from $_GET/$_POST to object. NOT STATIC.

Parameters

$array
array
$array $_GET or $_POST array to import
$index
string|boolean
$index Index/name that the config variables are in
$allowed
array|boolean
$allowed List of allowed namespaces/directives
$mq_fix
boolean
$mq_fix Boolean whether or not to enable magic quotes fix
public static array
# prepareArrayFromForm( array $array, string|boolean $index = false, array|boolean $allowed = true, boolean $mq_fix = true, HTMLPurifier_ConfigSchema $schema = null )

Prepares an array from a form into something usable for the more strict parts of HTMLPurifier_Config

Prepares an array from a form into something usable for the more strict parts of HTMLPurifier_Config

Parameters

$array
array
$array $_GET or $_POST array to import
$index
string|boolean
$index Index/name that the config variables are in
$allowed
array|boolean
$allowed List of allowed namespaces/directives
$mq_fix
boolean
$mq_fix Boolean whether or not to enable magic quotes fix
$schema
HTMLPurifier_ConfigSchema
$schema Schema to use, if not global copy

Returns

array
public
# loadIni( string $filename )

Loads configuration values from an ini file

Loads configuration values from an ini file

Parameters

$filename
string
$filename Name of ini file
public boolean
# isFinalized( string|boolean $error = false )

Checks whether or not the configuration object is finalized.

Checks whether or not the configuration object is finalized.

Parameters

$error
string|boolean
$error String error message, or false for no error

Returns

boolean
public
# autoFinalize( )

Finalizes configuration only if auto finalize is on and not already finalized

Finalizes configuration only if auto finalize is on and not already finalized

public
# finalize( )

Finalizes a configuration object, prohibiting further change

Finalizes a configuration object, prohibiting further change

protected
# triggerError( string $msg, integer $no )

Produces a nicely formatted error message by supplying the stack frame information OUTSIDE of HTMLPurifier_Config.

Produces a nicely formatted error message by supplying the stack frame information OUTSIDE of HTMLPurifier_Config.

Parameters

$msg
string
$msg An error message
$no
integer
$no An error number
public string
# serialize( )

Returns a serialized form of the configuration object that can be reconstituted.

Returns a serialized form of the configuration object that can be reconstituted.

Returns

string
Properties summary
public string $version '4.6.0'
#

HTML Purifier's version

HTML Purifier's version

Type

string
public boolean $autoFinalize true
#

Whether or not to automatically finalize the object if a read operation is done.

Whether or not to automatically finalize the object if a read operation is done.

Type

bool
protected array $serials array()
#

Namespace indexed array of serials for specific namespaces.

Namespace indexed array of serials for specific namespaces.

See

getSerial() for more info.

Type

string[]
protected mixed $serial
#

Serial for entire configuration object.

Serial for entire configuration object.

Type

string
protected mixed $parser null
#

Parser for variables.

Parser for variables.

Type

HTMLPurifier_VarParser_Flexible
public mixed $def
#

Reference HTMLPurifier_ConfigSchema for value checking.

Reference HTMLPurifier_ConfigSchema for value checking.

Note

This is public for introspective purposes. Please don't abuse!

Type

HTMLPurifier_ConfigSchema
protected mixed $definitions
#

Indexed array of definitions.

Indexed array of definitions.

Type

HTMLPurifier_Definition[]
protected boolean $finalized false
#

Whether or not config is finalized.

Whether or not config is finalized.

Type

bool
protected mixed $plist
#

Property list containing configuration directives.

Property list containing configuration directives.

Type

array
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.

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.

Type

bool
API documentation generated by ApiGen 2.8.0