XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_Strategy_MakeWellFormed
+ Graphe d'héritage de HTMLPurifier_Strategy_MakeWellFormed:
+ Graphe de collaboration de HTMLPurifier_Strategy_MakeWellFormed:

Fonctions membres publiques

 execute ($tokens, $config, $context)
 

Fonctions membres protégées

 processToken ($token, $injector=-1)
 

Attributs protégés

 $tokens
 
 $token
 
 $zipper
 
 $stack
 
 $injectors
 
 $config
 
 $context
 

Fonctions membres privées

 insertBefore ($token)
 
 remove ()
 

Description détaillée

Takes tokens makes them well-formed (balance end tags, etc.)

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].

Documentation des fonctions membres

◆ execute()

execute (   $tokens,
  $config,
  $context 
)
Paramètres
HTMLPurifier_Token[]$tokens
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Renvoie
HTMLPurifier_Token[]
Exceptions
HTMLPurifier_Exception

Réimplémentée à partir de HTMLPurifier_Strategy.

+ Voici le graphe d'appel pour cette fonction :

◆ insertBefore()

insertBefore (   $token)
private

Inserts a token before the current token. Cursor now points to this token. You must reprocess after this.

Paramètres
HTMLPurifier_Token$token
+ Voici le graphe des appelants de cette fonction :

◆ processToken()

processToken (   $token,
  $injector = -1 
)
protected

Processes arbitrary token values for complicated substitution patterns. 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.

Paramètres
HTMLPurifier_Token | array | int | bool$tokenToken substitution value
HTMLPurifier_Injector | int$injectorInjector that performed the substitution; default is if this is not an injector related operation.
Exceptions
HTMLPurifier_Exception
+ Voici le graphe des appelants de cette fonction :

◆ remove()

remove ( )
private

Removes current token. Cursor now points to new token occupying previously occupied space. You must reprocess after this.

Documentation des champs

◆ $config

$config
protected

Current instance of HTMLPurifier_Config. @type HTMLPurifier_Config

◆ $context

$context
protected

Current instance of HTMLPurifier_Context. @type HTMLPurifier_Context

◆ $injectors

$injectors
protected

Injectors active in this stream processing. @type HTMLPurifier_Injector[]

◆ $stack

$stack
protected

Current nesting of elements. @type array

◆ $token

$token
protected

Current token. @type HTMLPurifier_Token

◆ $tokens

$tokens
protected

Array stream of tokens being processed. @type HTMLPurifier_Token[]

◆ $zipper

$zipper
protected

Zipper managing the true state. @type HTMLPurifier_Zipper


La documentation de cette classe a été générée à partir du fichier suivant :