PHP Class HTMLPurifier_AttrDef, yii

显示文件 Open project: yiisoft/yii

Public Properties

Property Type Description
$minimized Has no meaning in other contexts.
$required Has no meaning in other contexts

Public Methods

Method Description
make ( string $string ) : HTMLPurifier_AttrDef Factory method for creating this class from a string.
parseCDATA ( $string ) Convenience method that parses a string as if it were CDATA.
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) Validates and cleans passed string according to a definition.

Protected Methods

Method Description
expandCSSEscape ( $string ) Parses a possibly escaped CSS string and returns the "pure" version of it.
mungeRgb ( string $string ) : string Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK!

Method Details

expandCSSEscape() protected method

Parses a possibly escaped CSS string and returns the "pure" version of it.
protected expandCSSEscape ( $string )

make() public method

Factory method for creating this class from a string.
public make ( string $string ) : HTMLPurifier_AttrDef
$string string String construction info
return HTMLPurifier_AttrDef Created AttrDef object corresponding to $string

mungeRgb() protected method

Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK!
protected mungeRgb ( string $string ) : string
$string string a CSS colour definition
return string

parseCDATA() public method

This method process a string in the manner specified at by removing leading and trailing whitespace, ignoring line feeds, and replacing carriage returns and tabs with spaces. While most useful for HTML attributes specified as CDATA, it can also be applied to most CSS values.
public parseCDATA ( $string )

validate() abstract public method

Validates and cleans passed string according to a definition.
abstract public validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context )
$string string String to be validated and cleaned.
$config HTMLPurifier_Config Mandatory HTMLPurifier_Config object.
$context HTMLPurifier_Context Mandatory HTMLPurifier_Context object.

Property Details

$minimized public_oe property

Has no meaning in other contexts.
public $minimized

$required public_oe property

Has no meaning in other contexts
public $required