XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
EntityLookup.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_EntityLookup
{
7
11
public
$table
;
12
19
public
function
setup
(
$file
=
false
) {
20
if
(!
$file
) {
21
$file
= HTMLPURIFIER_PREFIX .
'/HTMLPurifier/EntityLookup/entities.ser'
;
22
}
23
$this->table = unserialize(file_get_contents(
$file
));
24
}
25
30
public
static
function
instance
($prototype =
false
) {
31
// no references, since PHP doesn't copy unless modified
32
static
$instance = null;
33
if
($prototype) {
34
$instance = $prototype;
35
} elseif (!$instance) {
36
$instance =
new
HTMLPurifier_EntityLookup
();
37
$instance->setup();
38
}
39
return
$instance;
40
}
41
42
}
43
44
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
EntityLookup.php
Generated on Fri May 10 2013 01:04:30 for XOOPS 2.5.6 by
1.8.3.1