Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_TokenFactory Class Reference

Public Member Functions

 __construct ()
 Generates blank prototypes for cloning.
 
 createComment ($data)
 Creates a HTMLPurifier_Token_Comment.
 
 createEmpty ($name, $attr=array())
 Creates a HTMLPurifier_Token_Empty.
 
 createEnd ($name)
 Creates a HTMLPurifier_Token_End.
 
 createStart ($name, $attr=array())
 Creates a HTMLPurifier_Token_Start.
 
 createText ($data)
 Creates a HTMLPurifier_Token_Text.
 

Member Function Documentation

◆ createComment()

HTMLPurifier_TokenFactory::createComment ( $data)

Creates a HTMLPurifier_Token_Comment.

Parameters
string$dataData of comment token
Return values
HTMLPurifier_Token_CommentGenerated HTMLPurifier_Token_Comment

◆ createEmpty()

HTMLPurifier_TokenFactory::createEmpty ( $name,
$attr = array() )

Creates a HTMLPurifier_Token_Empty.

Parameters
string$nameTag name
array$attrAssociative array of attributes
Return values
HTMLPurifier_Token_EmptyGenerated HTMLPurifier_Token_Empty

◆ createEnd()

HTMLPurifier_TokenFactory::createEnd ( $name)

Creates a HTMLPurifier_Token_End.

Parameters
string$nameTag name
Return values
HTMLPurifier_Token_EndGenerated HTMLPurifier_Token_End

◆ createStart()

HTMLPurifier_TokenFactory::createStart ( $name,
$attr = array() )

Creates a HTMLPurifier_Token_Start.

Parameters
string$nameTag name
array$attrAssociative array of attributes
Return values
HTMLPurifier_Token_StartGenerated HTMLPurifier_Token_Start

◆ createText()

HTMLPurifier_TokenFactory::createText ( $data)

Creates a HTMLPurifier_Token_Text.

Parameters
string$dataData of text token
Return values
HTMLPurifier_Token_TextGenerated HTMLPurifier_Token_Text

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