ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HTMLPurifier_Token_Comment Class Reference

Concrete comment token class. More...

+ Inheritance diagram for HTMLPurifier_Token_Comment:
+ Collaboration diagram for HTMLPurifier_Token_Comment:

Public Member Functions

 __construct ($data, $line=null, $col=null)
 Transparent constructor.
 toNode ()
 Converts a token into its corresponding node.
- Public Member Functions inherited from HTMLPurifier_Token
 __get ($n)
 position ($l=null, $c=null)
 Sets the position of the token in the source document.
 rawPosition ($l, $c)
 Convenience function for DirectLex settings line/col position.

Data Fields

 $data
 Character data within comment.
 $is_whitespace = true
 bool
- Data Fields inherited from HTMLPurifier_Token
 $line
 Line number node was on in source document.
 $col
 Column of line node was on in source document.
 $armor = array()
 Lookup array of processing that this token is exempt from.
 $skip
 Used during MakeWellFormed.
 $rewind
 
 $carryover
 

Detailed Description

Concrete comment token class.

Generally will be ignored.

Definition at line 6 of file Comment.php.

Constructor & Destructor Documentation

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

Transparent constructor.

Parameters
string$dataString comment data.
int$line
int$col

Definition at line 26 of file Comment.php.

References HTMLPurifier_Token\$col, $data, and HTMLPurifier_Token\$line.

{
$this->data = $data;
$this->line = $line;
$this->col = $col;
}

Member Function Documentation

HTMLPurifier_Token_Comment::toNode ( )

Converts a token into its corresponding node.

Reimplemented from HTMLPurifier_Token.

Definition at line 33 of file Comment.php.

{
return new HTMLPurifier_Node_Comment($this->data, $this->line, $this->col);
}

Field Documentation

HTMLPurifier_Token_Comment::$data

Character data within comment.

string

Definition at line 12 of file Comment.php.

Referenced by __construct().

HTMLPurifier_Token_Comment::$is_whitespace = true

bool

Definition at line 17 of file Comment.php.


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