\HTMLPurifier_TokenFactory

Factory for token generation.

Summary

Methods
Properties
Constants
__construct()
createStart()
createEnd()
createEmpty()
createText()
createComment()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$p_start
$p_end
$p_empty
$p_text
$p_comment
N/A

Properties

$p_start

$p_start

$p_end

$p_end

$p_empty

$p_empty

$p_text

$p_text

$p_comment

$p_comment

Methods

__construct()

__construct() : mixed

Generates blank prototypes for cloning.

Returns

mixed —

createStart()

createStart(string  $name, array  $attr = array()) : \HTMLPurifier_Token_Start

Creates a HTMLPurifier_Token_Start.

Parameters

string $name

Tag name

array $attr

Associative array of attributes

Returns

\HTMLPurifier_Token_Start —

Generated HTMLPurifier_Token_Start

createEnd()

createEnd(string  $name) : \HTMLPurifier_Token_End

Creates a HTMLPurifier_Token_End.

Parameters

string $name

Tag name

Returns

\HTMLPurifier_Token_End —

Generated HTMLPurifier_Token_End

createEmpty()

createEmpty(string  $name, array  $attr = array()) : \HTMLPurifier_Token_Empty

Creates a HTMLPurifier_Token_Empty.

Parameters

string $name

Tag name

array $attr

Associative array of attributes

Returns

\HTMLPurifier_Token_Empty —

Generated HTMLPurifier_Token_Empty

createText()

createText(string  $data) : \HTMLPurifier_Token_Text

Creates a HTMLPurifier_Token_Text.

Parameters

string $data

Data of text token

Returns

\HTMLPurifier_Token_Text —

Generated HTMLPurifier_Token_Text

createComment()

createComment(string  $data) : \HTMLPurifier_Token_Comment

Creates a HTMLPurifier_Token_Comment.

Parameters

string $data

Data of comment token

Returns

\HTMLPurifier_Token_Comment —

Generated HTMLPurifier_Token_Comment