Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_Token_Text Class Reference
Inheritance diagram for HTMLPurifier_Token_Text:
HTMLPurifier_Token

Public Member Functions

 __construct ($data, $line=null, $col=null)
 Constructor, accepts data and determines if it is whitespace.
 
 __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.
 
 $data
 @type string
 
 $is_whitespace
 @type bool
 
 $line
 Line number node was on in source document.
 
 $name = '#PCDATA'
 @type string
 
 $rewind
 @type
 
 $skip
 Used during MakeWellFormed.
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_Token_Text::__construct ( $data,
$line = null,
$col = null )

Constructor, accepts data and determines if it is whitespace.

Parameters
string$dataString parsed character data.
int$line
int$col

Member Function Documentation

◆ __get()

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

◆ position()

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

Sets the position of the token in the source document.

Parameters
int$l
int$c

◆ rawPosition()

HTMLPurifier_Token::rawPosition ( $l,
$c )
inherited

Convenience function for DirectLex settings line/col position.

Parameters
int$l
int$c

◆ toNode()

HTMLPurifier_Token_Text::toNode ( )

Converts a token into its corresponding node.

Reimplemented from HTMLPurifier_Token.

Member Data Documentation

◆ $armor

HTMLPurifier_Token::$armor = array()
inherited

Lookup array of processing that this token is exempt from.

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

◆ $col

HTMLPurifier_Token::$col
inherited

Column of line node was on in source document.

Null if unknown. @type int

◆ $data

HTMLPurifier_Token_Text::$data

@type string

Parsed character data of text.

◆ $is_whitespace

HTMLPurifier_Token_Text::$is_whitespace

@type bool

Bool indicating if node is whitespace.

◆ $line

HTMLPurifier_Token::$line
inherited

Line number node was on in source document.

Null if unknown. @type int

◆ $name

HTMLPurifier_Token_Text::$name = '#PCDATA'

@type string

PCDATA tag name compatible with DTD.

◆ $skip

HTMLPurifier_Token::$skip
inherited

Used during MakeWellFormed.

See Note [Injector skips] @type


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