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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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