ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HTMLPurifier_Node_Comment Class Reference

Concrete comment node class. More...

+ Inheritance diagram for HTMLPurifier_Node_Comment:
+ Collaboration diagram for HTMLPurifier_Node_Comment:

Public Member Functions

 __construct ($data, $line=null, $col=null)
 Transparent constructor. More...
 
 toTokenPair ()
 
- Public Member Functions inherited from HTMLPurifier_Node
 toTokenPair ()
 Returns a pair of start and end tokens, where the end token is null if it is not necessary. More...
 

Data Fields

 $data
 Character data within comment. More...
 
 $is_whitespace = true
 bool More...
 
- Data Fields inherited from HTMLPurifier_Node
 $line
 Line number of the start token in the source document int. More...
 
 $col
 Column number of the start token in the source document. More...
 
 $armor = array()
 Lookup array of processing that this token is exempt from. More...
 
 $dead = false
 When true, this node should be ignored as non-existent. More...
 

Detailed Description

Concrete comment node class.

Definition at line 6 of file Comment.php.

Constructor & Destructor Documentation

◆ __construct()

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

Transparent constructor.

Parameters
string$dataString comment data.
int$line
int$col

Definition at line 26 of file Comment.php.

References HTMLPurifier_Node\$col, $data, HTMLPurifier_Node\$line, and data.

27  {
28  $this->data = $data;
29  $this->line = $line;
30  $this->col = $col;
31  }
Add some data
$data
Character data within comment.
Definition: Comment.php:12
$line
Line number of the start token in the source document int.
Definition: Node.php:17
$col
Column number of the start token in the source document.
Definition: Node.php:23

Member Function Documentation

◆ toTokenPair()

HTMLPurifier_Node_Comment::toTokenPair ( )

Definition at line 33 of file Comment.php.

References array, and data.

33  {
34  return array(new HTMLPurifier_Token_Comment($this->data, $this->line, $this->col), null);
35  }
Add some data
Create styles array
The data for the language used.
Concrete comment token class.
Definition: Comment.php:6

Field Documentation

◆ $data

HTMLPurifier_Node_Comment::$data

Character data within comment.

string

Definition at line 12 of file Comment.php.

Referenced by __construct().

◆ $is_whitespace

HTMLPurifier_Node_Comment::$is_whitespace = true

bool

Definition at line 17 of file Comment.php.


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