ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Text.php
Go to the documentation of this file.
1<?php
2
13{
14
20 public $name = '#PCDATA';
21
25 public $data;
32
41 public function __construct($data, $is_whitespace, $line = null, $col = null)
42 {
43 $this->data = $data;
44 $this->is_whitespace = $is_whitespace;
45 $this->line = $line;
46 $this->col = $col;
47 }
48
49 public function toTokenPair() {
50 return array(new HTMLPurifier_Token_Text($this->data, $this->line, $this->col), null);
51 }
52}
53
54// vim: et sw=4 sts=4
Concrete text token class.
Definition: Text.php:13
__construct($data, $is_whitespace, $line=null, $col=null)
Constructor, accepts data and determines if it is whitespace.
Definition: Text.php:41
$is_whitespace
@type bool
Definition: Text.php:31
$data
@type string
Definition: Text.php:25
toTokenPair()
Returns a pair of start and end tokens, where the end token is null if it is not necessary.
Definition: Text.php:49
$name
PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details.
Definition: Text.php:20
Abstract base node class that all others inherit from.
Definition: Node.php:12
$line
Line number of the start token in the source document @type int.
Definition: Node.php:17
$col
Column number of the start token in the source document.
Definition: Node.php:23
Concrete text token class.
Definition: Text.php:13