PHP Класс HTMLPurifier_AttrDef, yii

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$minimized Has no meaning in other contexts.
$required Has no meaning in other contexts

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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!

Описание методов

expandCSSEscape() защищенный Метод

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

make() публичный Метод

Factory method for creating this class from a string.
public make ( string $string ) : HTMLPurifier_AttrDef
$string string String construction info
Результат HTMLPurifier_AttrDef Created AttrDef object corresponding to $string

mungeRgb() защищенный Метод

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
Результат string

parseCDATA() публичный Метод

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() абстрактный публичный Метод

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.

Описание свойств

$minimized публичное свойство

Has no meaning in other contexts.
public $minimized

$required публичное свойство

Has no meaning in other contexts
public $required