ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 toNode() {
34 return new HTMLPurifier_Node_Comment($this->data, $this->line, $this->col);
35 }
36}
37
38// vim: et sw=4 sts=4
Concrete comment node class.
Definition: Comment.php:7
Concrete comment token class.
Definition: Comment.php:7
__construct($data, $line=null, $col=null)
Transparent constructor.
Definition: Comment.php:26
toNode()
Converts a token into its corresponding node.
Definition: Comment.php:33
$data
Character data within comment.
Definition: Comment.php:12
Abstract base token class that all others inherit from.
Definition: Token.php:7
$line
Line number node was on in source document.
Definition: Token.php:12
$col
Column of line node was on in source document.
Definition: Token.php:18