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

Public Member Functions

 __construct ($data, $line=null, $col=null)
 Transparent constructor.
 
 __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
 Character data within comment.
 
 $is_whitespace = true
 @type bool
 
 $line
 Line number node was on in source document.
 
 $rewind
 @type
 
 $skip
 Used during MakeWellFormed.
 

Constructor & Destructor Documentation

◆ __construct()

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

Transparent constructor.

Parameters
string$dataString comment 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_Comment::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_Comment::$data

Character data within comment.

@type string

◆ $line

HTMLPurifier_Token::$line
inherited

Line number node was on in source document.

Null if unknown. @type int

◆ $skip

HTMLPurifier_Token::$skip
inherited

Used during MakeWellFormed.

See Note [Injector skips] @type


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