HTMLPurifier_Token_Comment
extends HTMLPurifier_Token
in package
Concrete comment token class. Generally will be ignored.
Table of Contents
Properties
- $armor : mixed
- Lookup array of processing that this token is exempt from.
- $carryover : mixed
- $col : mixed
- Column of line node was on in source document. Null if unknown.
- $data : mixed
- Character data within comment.
- $is_whitespace : mixed
- $line : mixed
- Line number node was on in source document. Null if unknown.
- $rewind : mixed
- $skip : mixed
- Used during MakeWellFormed. See Note [Injector skips]
Methods
- __construct() : mixed
- Transparent constructor.
- __get() : null|string
- position() : mixed
- Sets the position of the token in the source document.
- rawPosition() : mixed
- Convenience function for DirectLex settings line/col position.
- toNode() : mixed
- Converts a token into its corresponding node.
Properties
$armor
Lookup array of processing that this token is exempt from.
public
mixed
$armor
= array()
Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"
Tags
$carryover
public
mixed
$carryover
Tags
$col
Column of line node was on in source document. Null if unknown.
public
mixed
$col
Tags
$data
Character data within comment.
public
mixed
$data
Tags
$is_whitespace
public
mixed
$is_whitespace
= \true
Tags
$line
Line number node was on in source document. Null if unknown.
public
mixed
$line
Tags
$rewind
public
mixed
$rewind
Tags
$skip
Used during MakeWellFormed. See Note [Injector skips]
public
mixed
$skip
Tags
Methods
__construct()
Transparent constructor.
public
__construct(string $data[, int $line = null ][, int $col = null ]) : mixed
Parameters
- $data : string
-
String comment data.
- $line : int = null
- $col : int = null
__get()
public
__get(string $n) : null|string
Parameters
- $n : string
Return values
null|stringposition()
Sets the position of the token in the source document.
public
position([int $l = null ][, int $c = null ]) : mixed
Parameters
- $l : int = null
- $c : int = null
rawPosition()
Convenience function for DirectLex settings line/col position.
public
rawPosition(int $l, int $c) : mixed
Parameters
- $l : int
- $c : int
toNode()
Converts a token into its corresponding node.
public
toNode() : mixed