PHP 클래스 HTMLPurifier_AttrDef, yii

파일 보기 프로젝트 열기: yiisoft/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