Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_Token Class Reference
Inheritance diagram for HTMLPurifier_Token:
HTMLPurifier_Token_Comment HTMLPurifier_Token_Tag HTMLPurifier_Token_Text HTMLPurifier_Token_Empty HTMLPurifier_Token_End HTMLPurifier_Token_Start

Public Member Functions

 __get ($n)
 
 position ($l=null, $c=null)
 Sets the position of the token in the source document.
 
 rawPosition ($l, $c)
 Convenience function for DirectLex settings line/col position.
 
 toNode ()
 Converts a token into its corresponding node.
 

Public Attributes

 $armor = array()
 Lookup array of processing that this token is exempt from.
 
 $carryover
 @type
 
 $col
 Column of line node was on in source document.
 
 $line
 Line number node was on in source document.
 
 $rewind
 @type
 
 $skip
 Used during MakeWellFormed.
 

Member Function Documentation

◆ __get()

HTMLPurifier_Token::__get ( $n)
Parameters
string$n
Return values
null|string

◆ position()

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

Sets the position of the token in the source document.

Parameters
int$l
int$c

◆ rawPosition()

HTMLPurifier_Token::rawPosition ( $l,
$c )

Convenience function for DirectLex settings line/col position.

Parameters
int$l
int$c

◆ toNode()

HTMLPurifier_Token::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.

Member Data Documentation

◆ $armor

HTMLPurifier_Token::$armor = array()

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError" @type array

◆ $col

HTMLPurifier_Token::$col

Column of line node was on in source document.

Null if unknown. @type int

◆ $line

HTMLPurifier_Token::$line

Line number node was on in source document.

Null if unknown. @type int

◆ $skip

HTMLPurifier_Token::$skip

Used during MakeWellFormed.

See Note [Injector skips] @type


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