PHP 클래스 HTMLPurifier_Strategy_MakeWellFormed, yii

Specification of the armor attributes this strategy uses: - MakeWellFormed_TagClosedError: This armor field is used to suppress tag closed errors for certain tokens [TagClosedSuppress], in particular, if a tag was generated automatically by HTML Purifier, we may rely on our infrastructure to close it for us and shouldn't report an error to the user [TagClosedAuto].
상속: extends HTMLPurifier_Strategy
파일 보기 프로젝트 열기: yiisoft/yii

보호된 프로퍼티들

프로퍼티 타입 설명
$config Current instance of HTMLPurifier_Config.
$context Current instance of HTMLPurifier_Context.
$injectors Injectors active in this stream processing.
$stack Current nesting of elements.
$token Current token.
$tokens Array stream of tokens being processed.
$zipper Zipper managing the true state.

공개 메소드들

메소드 설명
execute ( HTMLPurifier_Token[] $tokens, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_Token[]

보호된 메소드들

메소드 설명
processToken ( HTMLPurifier_Token | array | integer | boolean $token, HTMLPurifier_Injector | integer $injector ) Processes arbitrary token values for complicated substitution patterns.

비공개 메소드들

메소드 설명
insertBefore ( HTMLPurifier_Token $token ) Inserts a token before the current token. Cursor now points to this token. You must reprocess after this.
remove ( ) Removes current token. Cursor now points to new token occupying previously occupied space. You must reprocess after this.

메소드 상세

execute() 공개 메소드

public execute ( HTMLPurifier_Token[] $tokens, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_Token[]
$tokens HTMLPurifier_Token[]
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 HTMLPurifier_Token[]

processToken() 보호된 메소드

In general: If $token is an array, it is a list of tokens to substitute for the current token. These tokens then get individually processed. If there is a leading integer in the list, that integer determines how many tokens from the stream should be removed. If $token is a regular token, it is swapped with the current token. If $token is false, the current token is deleted. If $token is an integer, that number of tokens (with the first token being the current one) will be deleted.
protected processToken ( HTMLPurifier_Token | array | integer | boolean $token, HTMLPurifier_Injector | integer $injector )
$token HTMLPurifier_Token | array | integer | boolean Token substitution value
$injector HTMLPurifier_Injector | integer Injector that performed the substitution; default is if this is not an injector related operation.

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Current instance of HTMLPurifier_Config.
protected $config

$context 보호되어 있는 프로퍼티

Current instance of HTMLPurifier_Context.
protected $context

$injectors 보호되어 있는 프로퍼티

Injectors active in this stream processing.
protected $injectors

$stack 보호되어 있는 프로퍼티

Current nesting of elements.
protected $stack

$token 보호되어 있는 프로퍼티

Current token.
protected $token

$tokens 보호되어 있는 프로퍼티

Array stream of tokens being processed.
protected $tokens

$zipper 보호되어 있는 프로퍼티

Zipper managing the true state.
protected $zipper