PHP Class HTMLPurifier_AttrDef, yii

Afficher le fichier Open project: yiisoft/yii

Méthodes publiques

Свойство Type Description
$minimized Has no meaning in other contexts.
$required Has no meaning in other contexts

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

make() public méthode

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

mungeRgb() protected méthode

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
Résultat string

parseCDATA() public méthode

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 méthode

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