\HTMLPurifier_ConfigSchema_InterchangeBuilder

Summary

Methods
Properties
Constants
__construct()
buildFromDirectory()
buildDir()
buildFile()
build()
buildDirective()
No public properties found
No constants found
evalArray()
lookup()
id()
_findUnused()
$varParser
N/A
No private methods found
No private properties found
N/A

Properties

$varParser

$varParser

Used for processing DEFAULT, nothing else.

Methods

__construct()

__construct(\HTMLPurifier_VarParser  $varParser = null) : mixed

Parameters

\HTMLPurifier_VarParser $varParser

Returns

mixed —

buildFromDirectory()

buildFromDirectory(string  $dir = null) : \HTMLPurifier_ConfigSchema_Interchange

Parameters

string $dir

Returns

\HTMLPurifier_ConfigSchema_Interchange —

buildDir()

buildDir(\HTMLPurifier_ConfigSchema_Interchange  $interchange, string  $dir = null) : \HTMLPurifier_ConfigSchema_Interchange

Parameters

\HTMLPurifier_ConfigSchema_Interchange $interchange
string $dir

Returns

\HTMLPurifier_ConfigSchema_Interchange —

buildFile()

buildFile(\HTMLPurifier_ConfigSchema_Interchange  $interchange, string  $file) : mixed

Parameters

\HTMLPurifier_ConfigSchema_Interchange $interchange
string $file

Returns

mixed —

build()

build(\HTMLPurifier_ConfigSchema_Interchange  $interchange, \HTMLPurifier_StringHash  $hash) : mixed

Builds an interchange object based on a hash.

Parameters

\HTMLPurifier_ConfigSchema_Interchange $interchange

HTMLPurifier_ConfigSchema_Interchange object to build

\HTMLPurifier_StringHash $hash

source data

Throws

\HTMLPurifier_ConfigSchema_Exception

Returns

mixed —

buildDirective()

buildDirective(\HTMLPurifier_ConfigSchema_Interchange  $interchange, \HTMLPurifier_StringHash  $hash) : mixed

Parameters

\HTMLPurifier_ConfigSchema_Interchange $interchange
\HTMLPurifier_StringHash $hash

Throws

\HTMLPurifier_ConfigSchema_Exception

Returns

mixed —

evalArray()

evalArray(string  $contents) : mixed

Evaluates an array PHP code string without array() wrapper

Parameters

string $contents

Returns

mixed —

lookup()

lookup(array  $array) : array

Converts an array list into a lookup array.

Parameters

array $array

Returns

array —

id()

id(string  $id) : \HTMLPurifier_ConfigSchema_Interchange_Id

Convenience function that creates an HTMLPurifier_ConfigSchema_Interchange_Id object based on a string Id.

Parameters

string $id

Returns

\HTMLPurifier_ConfigSchema_Interchange_Id —

_findUnused()

_findUnused(\HTMLPurifier_StringHash  $hash) : mixed

Triggers errors for any unused keys passed in the hash; such keys may indicate typos, missing values, etc.

Parameters

\HTMLPurifier_StringHash $hash

Hash to check.

Returns

mixed —