Class HTMLPurifier_VarParser_Native

InheritanceHTMLPurifier_VarParser_Native » HTMLPurifier_VarParser

This variable parser uses PHP's internal code engine. Because it does this, it can represent all inputs; however, it is dangerous and cannot be used by users.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$stringTypes Lookup table of types that are string, and can have aliases or allowed value lists. HTMLPurifier_VarParser
$types Lookup table of allowed types. Mainly for backwards compatibility, but also convenient for transforming string type names to the integer constants. HTMLPurifier_VarParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getTypeName() HTMLPurifier_VarParser
parse() Validate a variable according to type. HTMLPurifier_VarParser

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
error() Throws an exception. HTMLPurifier_VarParser
errorGeneric() Generic error for if a type didn't work. HTMLPurifier_VarParser
errorInconsistent() Throws an inconsistency exception. HTMLPurifier_VarParser
evalExpression() HTMLPurifier_VarParser_Native
parseImplementation() HTMLPurifier_VarParser_Native

Method Details

evalExpression() protected method

protected mixed evalExpression ( $expr )
$expr string
throws HTMLPurifier_VarParserException
parseImplementation() protected method

protected null|string parseImplementation ( $var, $type, $allow_null )
$var mixed
$type int
$allow_null bool