Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(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.

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

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

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

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

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

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

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

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

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