API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Token Class Reference
Inheritance diagram for HTMLPurifier_Token:

Public Member Functions

 __get ($n)
 
 position ($l=null, $c=null)
 
 rawPosition ($l, $c)
 
 toNode ()
 

Data Fields

 $line
 
 $col
 
 $armor = array()
 
 $skip
 
 $rewind
 
 $carryover
 

Detailed Description

Abstract base token class that all others inherit from.

Member Function Documentation

◆ __get()

__get (   $n)
Parameters
string$n
Returns
null|string

◆ position()

position (   $l = null,
  $c = null 
)

Sets the position of the token in the source document.

Parameters
int$l
int$c

◆ rawPosition()

rawPosition (   $l,
  $c 
)

Convenience function for DirectLex settings line/col position.

Parameters
int$l
int$c

◆ toNode()

toNode ( )
abstract

Converts a token into its corresponding node.

Reimplemented in HTMLPurifier_Token_Comment, HTMLPurifier_Token_Empty, HTMLPurifier_Token_End, HTMLPurifier_Token_Tag, and HTMLPurifier_Token_Text.

Field Documentation

◆ $armor

$armor = array()

Lookup array of processing that this token is exempt from. Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError" @type array

◆ $carryover

$carryover

@type

◆ $col

$col

Column of line node was on in source document. Null if unknown. @type int

◆ $line

$line

Line number node was on in source document. Null if unknown. @type int

◆ $rewind

$rewind

@type

◆ $skip

$skip

Used during MakeWellFormed. See Note [Injector skips] @type


The documentation for this class was generated from the following file: