Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 118 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_TokenFactory:: (6 methods):
  __construct()
  createStart()
  createEnd()
  createEmpty()
  createText()
  createComment()


Class: HTMLPurifier_TokenFactory  - X-Ref

Factory for token generation.

__construct()   X-Ref
Generates blank prototypes for cloning.


createStart($name, $attr = array()   X-Ref
Creates a HTMLPurifier_Token_Start.

return: HTMLPurifier_Token_Start Generated HTMLPurifier_Token_Start
param: string $name Tag name
param: array $attr Associative array of attributes

createEnd($name)   X-Ref
Creates a HTMLPurifier_Token_End.

return: HTMLPurifier_Token_End Generated HTMLPurifier_Token_End
param: string $name Tag name

createEmpty($name, $attr = array()   X-Ref
Creates a HTMLPurifier_Token_Empty.

return: HTMLPurifier_Token_Empty Generated HTMLPurifier_Token_Empty
param: string $name Tag name
param: array $attr Associative array of attributes

createText($data)   X-Ref
Creates a HTMLPurifier_Token_Text.

return: HTMLPurifier_Token_Text Generated HTMLPurifier_Token_Text
param: string $data Data of text token

createComment($data)   X-Ref
Creates a HTMLPurifier_Token_Comment.

return: HTMLPurifier_Token_Comment Generated HTMLPurifier_Token_Comment
param: string $data Data of comment token