Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_Token_Text Class Reference
Inheritance diagram for HTMLPurifier_Token_Text:
Collaboration diagram for HTMLPurifier_Token_Text:

Public Member Functions

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

Data Fields

 $name = '#PCDATA'
 $data
 $is_whitespace

Detailed Description

Concrete text token class.

Text tokens comprise of regular parsed character data (PCDATA) and raw character data (from the CDATA sections). Internally, their data is parsed with all entities expanded. Surprisingly, the text token does have a "tag name" called #PCDATA, which is how the DTD represents it in permissible child nodes.

Definition at line 12 of file Text.php.


Constructor & Destructor Documentation

__construct ( data,
line = null,
col = null 
)

Constructor, accepts data and determines if it is whitespace.

Parameters:
$dataString parsed character data.

Definition at line 24 of file Text.php.


Field Documentation

$data

Parsed character data of text.

Definition at line 16 of file Text.php.

$is_whitespace

Bool indicating if node is whitespace.

Definition at line 17 of file Text.php.

$name = '#PCDATA'

PCDATA tag name compatible with DTD.

Definition at line 15 of file Text.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations