ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
Add some data
Abstract base node class that all others inherit from.
Definition: Node.php:11
$name
PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details.
Definition: Text.php:20
Create styles array
The data for the language used.
Concrete text token class.
Definition: Text.php:12
$line
Line number of the start token in the source document int.
Definition: Node.php:17
__construct($data, $is_whitespace, $line=null, $col=null)
Constructor, accepts data and determines if it is whitespace.
Definition: Text.php:41
$col
Column number of the start token in the source document.
Definition: Node.php:23
Concrete text token class.
Definition: Text.php:12