Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
HTMLPurifier_EntityLookup Class Reference

Public Member Functions

 setup ($file=false)
 Sets up the entity lookup table from the serialized file contents.
 

Static Public Member Functions

static instance ($prototype=false)
 Retrieves sole instance of the object.
 

Public Attributes

 $table
 Assoc array of entity name to character represented.
 

Member Function Documentation

◆ instance()

static HTMLPurifier_EntityLookup::instance ( $prototype = false)
static

Retrieves sole instance of the object.

Parameters
bool | HTMLPurifier_EntityLookup$prototypeOptional prototype of custom lookup table to overload with.
Return values
HTMLPurifier_EntityLookup

◆ setup()

HTMLPurifier_EntityLookup::setup ( $file = false)

Sets up the entity lookup table from the serialized file contents.

Parameters
bool$file
Note
The serialized contents are versioned, but were generated using the maintenance script generate_entity_file.php
Warning
This is not in constructor to help enforce the Singleton

Member Data Documentation

◆ $table

HTMLPurifier_EntityLookup::$table

Assoc array of entity name to character represented.

@type array


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