API - XOOPS 2.5.11 Beta 2
By monxoops.fr
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)
 
 toNode ()
 
- Public Member Functions inherited from HTMLPurifier_Token
 __get ($n)
 
 position ($l=null, $c=null)
 
 rawPosition ($l, $c)
 
 toNode ()
 

Data Fields

 $name = '#PCDATA'
 
 $data
 
 $is_whitespace
 
- Data Fields inherited from HTMLPurifier_Token
 $line
 
 $col
 
 $armor = array()
 
 $skip
 
 $rewind
 
 $carryover
 

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.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor, accepts data and determines if it is whitespace.

Parameters
string$dataString parsed character data.
int$line
int$col

Member Function Documentation

◆ toNode()

toNode ( )

Converts a token into its corresponding node.

Reimplemented from HTMLPurifier_Token.

Field Documentation

◆ $data

$data

@type string Parsed character data of text.

◆ $is_whitespace

$is_whitespace

@type bool Bool indicating if node is whitespace.

◆ $name

$name = '#PCDATA'

@type string PCDATA tag name compatible with DTD.


The documentation for this class was generated from the following file: