ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
Comment.php
Go to the documentation of this file.
1 <?php
2 
7 {
12  public $data;
13 
17  public $is_whitespace = true;
18 
26  public function __construct($data, $line = null, $col = null)
27  {
28  $this->data = $data;
29  $this->line = $line;
30  $this->col = $col;
31  }
32 
33  public function toTokenPair() {
34  return array(new HTMLPurifier_Token_Comment($this->data, $this->line, $this->col), null);
35  }
36 }
Add some data
Concrete comment node class.
Definition: Comment.php:6
__construct($data, $line=null, $col=null)
Transparent constructor.
Definition: Comment.php:26
Abstract base node class that all others inherit from.
Definition: Node.php:11
$data
Character data within comment.
Definition: Comment.php:12
Create styles array
The data for the language used.
$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
Concrete comment token class.
Definition: Comment.php:6