Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_ConfigSchema_InterchangeBuilder Class Reference

Public Member Functions

 __construct ($varParser=null)
 
 build ($interchange, $hash)
 Builds an interchange object based on a hash.
 
 buildDir ($interchange, $dir=null)
 
 buildDirective ($interchange, $hash)
 
 buildFile ($interchange, $file)
 

Static Public Member Functions

static buildFromDirectory ($dir=null)
 

Protected Member Functions

 _findUnused ($hash)
 Triggers errors for any unused keys passed in the hash; such keys may indicate typos, missing values, etc.
 
 evalArray ($contents)
 Evaluates an array PHP code string without array() wrapper.
 
 id ($id)
 Convenience function that creates an HTMLPurifier_ConfigSchema_Interchange_Id object based on a string Id.
 
 lookup ($array)
 Converts an array list into a lookup array.
 

Protected Attributes

 $varParser
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ConfigSchema_InterchangeBuilder::__construct ( $varParser = null)
Parameters
HTMLPurifier_VarParser$varParser

Member Function Documentation

◆ _findUnused()

HTMLPurifier_ConfigSchema_InterchangeBuilder::_findUnused ( $hash)
protected

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

Parameters
HTMLPurifier_StringHash$hashHash to check.

◆ build()

HTMLPurifier_ConfigSchema_InterchangeBuilder::build ( $interchange,
$hash )

Builds an interchange object based on a hash.

Parameters
HTMLPurifier_ConfigSchema_Interchange$interchangeHTMLPurifier_ConfigSchema_Interchange object to build
HTMLPurifier_StringHash$hashsource data
Exceptions
HTMLPurifier_ConfigSchema_Exception

◆ buildDir()

HTMLPurifier_ConfigSchema_InterchangeBuilder::buildDir ( $interchange,
$dir = null )
Parameters
HTMLPurifier_ConfigSchema_Interchange$interchange
string$dir
Return values
HTMLPurifier_ConfigSchema_Interchange

◆ buildDirective()

HTMLPurifier_ConfigSchema_InterchangeBuilder::buildDirective ( $interchange,
$hash )

◆ buildFile()

HTMLPurifier_ConfigSchema_InterchangeBuilder::buildFile ( $interchange,
$file )
Parameters
HTMLPurifier_ConfigSchema_Interchange$interchange
string$file

◆ buildFromDirectory()

static HTMLPurifier_ConfigSchema_InterchangeBuilder::buildFromDirectory ( $dir = null)
static
Parameters
string$dir
Return values
HTMLPurifier_ConfigSchema_Interchange

◆ evalArray()

HTMLPurifier_ConfigSchema_InterchangeBuilder::evalArray ( $contents)
protected

Evaluates an array PHP code string without array() wrapper.

Parameters
string$contents

◆ id()

HTMLPurifier_ConfigSchema_InterchangeBuilder::id ( $id)
protected

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

Parameters
string$id
Return values
HTMLPurifier_ConfigSchema_Interchange_Id

◆ lookup()

HTMLPurifier_ConfigSchema_InterchangeBuilder::lookup ( $array)
protected

Converts an array list into a lookup array.

Parameters
array$array
Return values
array

The documentation for this class was generated from the following file: