API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_ConfigSchema_Validator Class Reference

Public Member Functions

 __construct ()
 
 validate ($interchange)
 
 validateId ($id)
 
 validateDirective ($d)
 
 validateDirectiveAllowed ($d)
 
 validateDirectiveValueAliases ($d)
 
 validateDirectiveAliases ($d)
 

Protected Member Functions

 with ($obj, $member)
 
 error ($target, $msg)
 
 getFormattedContext ()
 

Protected Attributes

 $interchange
 
 $aliases
 
 $context = array()
 
 $parser
 

Detailed Description

Performs validations on HTMLPurifier_ConfigSchema_Interchange

Note
If you see '// handled by InterchangeBuilder', that means a design decision in that class would prevent this validation from ever being necessary. We have them anyway, however, for redundancy.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ error()

error (   $target,
  $msg 
)
protected

Emits an error, providing helpful context.

Exceptions
HTMLPurifier_ConfigSchema_Exception
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFormattedContext()

getFormattedContext ( )
protected

Returns a formatted context string.

Returns
string
Here is the caller graph for this function:

◆ validate()

validate (   $interchange)

Validates a fully-formed interchange object.

Parameters
HTMLPurifier_ConfigSchema_Interchange$interchange
Returns
bool
Here is the call graph for this function:

◆ validateDirective()

validateDirective (   $d)

Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateDirectiveAliases()

validateDirectiveAliases (   $d)

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

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateDirectiveAllowed()

validateDirectiveAllowed (   $d)

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

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateDirectiveValueAliases()

validateDirectiveValueAliases (   $d)

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

Parameters
HTMLPurifier_ConfigSchema_Interchange_Directive$d
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateId()

validateId (   $id)

Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.

Parameters
HTMLPurifier_ConfigSchema_Interchange_Id$id
Here is the call graph for this function:
Here is the caller graph for this function:

◆ with()

with (   $obj,
  $member 
)
protected

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

Parameters
$obj
$member
Returns
HTMLPurifier_ConfigSchema_ValidatorAtom
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $aliases

$aliases
protected

@type array

◆ $context

$context = array()
protected

Context-stack to provide easy to read error messages. @type array

◆ $interchange

$interchange
protected

◆ $parser

$parser
protected

to test default's type. @type HTMLPurifier_VarParser


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