PHP 클래스 HTMLPurifier_HTMLModule_Tidy, yii

상속: extends HTMLPurifier_HTMLModule
파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaultLevel Disabled by default.
$fixesForLevel Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2');
$levels Index zero is a special case "no fixes" level.

공개 메소드들

메소드 설명
getFixType ( $name ) : array(string Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix
getFixesForLevel ( string $level ) : array Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it.
makeFixes ( ) : array Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
makeFixesForLevel ( array $fixes ) Dynamically populates the $fixesForLevel member variable using the fixes array. It may be custom overloaded, used in conjunction with $defaultLevel, or not used at all.
populate ( array $fixes ) Populates the module with transforms and other special-case code based on a list of fixes passed to it
setup ( HTMLPurifier_Config $config ) Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.

메소드 상세

getFixType() 공개 메소드

Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix
public getFixType ( $name ) : array(string
$name String name of fix
리턴 array(string

getFixesForLevel() 공개 메소드

Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it.
public getFixesForLevel ( string $level ) : array
$level string level identifier, see $levels for valid values
리턴 array Lookup up table of fixes

makeFixes() 공개 메소드

Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
public makeFixes ( ) : array
리턴 array

makeFixesForLevel() 공개 메소드

Dynamically populates the $fixesForLevel member variable using the fixes array. It may be custom overloaded, used in conjunction with $defaultLevel, or not used at all.
public makeFixesForLevel ( array $fixes )
$fixes array

populate() 공개 메소드

Populates the module with transforms and other special-case code based on a list of fixes passed to it
public populate ( array $fixes )
$fixes array Lookup table of fixes to activate

setup() 공개 메소드

Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
public setup ( HTMLPurifier_Config $config )
$config HTMLPurifier_Config

프로퍼티 상세

$defaultLevel 공개적으로 프로퍼티

Disabled by default.
public $defaultLevel

$fixesForLevel 공개적으로 프로퍼티

Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2');
public $fixesForLevel

$levels 공개적으로 프로퍼티

Index zero is a special case "no fixes" level.
public $levels