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

Public Member Functions

 validate ($interchange)
 Validates a fully-formed interchange object.
 
 validateDirective ($d)
 Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
 
 validateDirectiveAliases ($d)
 Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
 
 validateDirectiveAllowed ($d)
 Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
 
 validateDirectiveValueAliases ($d)
 Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
 
 validateId ($id)
 Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
 

Protected Member Functions

 error ($target, $msg)
 Emits an error, providing helpful context.
 
 getFormattedContext ()
 Returns a formatted context string.
 
 with ($obj, $member)
 Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects.
 

Protected Attributes

 $aliases
 @type array
 
 $context = array()
 Context-stack to provide easy to read error messages.
 
 $interchange
 @type HTMLPurifier_ConfigSchema_Interchange
 
 $parser
 to test default's type.
 

Member Function Documentation

◆ error()

HTMLPurifier_ConfigSchema_Validator::error ( $target,
$msg )
protected

Emits an error, providing helpful context.

Exceptions
HTMLPurifier_ConfigSchema_Exception

◆ getFormattedContext()

HTMLPurifier_ConfigSchema_Validator::getFormattedContext ( )
protected

Returns a formatted context string.

Return values
string

◆ validate()

HTMLPurifier_ConfigSchema_Validator::validate ( $interchange)

Validates a fully-formed interchange object.

Parameters
HTMLPurifier_ConfigSchema_Interchange$interchange
Return values
bool

◆ validateDirective()

HTMLPurifier_ConfigSchema_Validator::validateDirective ( $d)

◆ validateDirectiveAliases()

HTMLPurifier_ConfigSchema_Validator::validateDirectiveAliases ( $d)

Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d

◆ validateDirectiveAllowed()

HTMLPurifier_ConfigSchema_Validator::validateDirectiveAllowed ( $d)

Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d

◆ validateDirectiveValueAliases()

HTMLPurifier_ConfigSchema_Validator::validateDirectiveValueAliases ( $d)

Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d

◆ validateId()

HTMLPurifier_ConfigSchema_Validator::validateId ( $id)

◆ with()

HTMLPurifier_ConfigSchema_Validator::with ( $obj,
$member )
protected

Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects.

Parameters
$obj
$member
Return values
HTMLPurifier_ConfigSchema_ValidatorAtom

Member Data Documentation

◆ $context

HTMLPurifier_ConfigSchema_Validator::$context = array()
protected

Context-stack to provide easy to read error messages.

@type array

◆ $parser

HTMLPurifier_ConfigSchema_Validator::$parser
protected

to test default's type.

@type HTMLPurifier_VarParser


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