ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilHtmlPurifierFactory.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
ilHtmlPurifierFactory
12
{
23
public
static
function
_getInstanceByType
($a_type)
24
{
25
global
$lng
;
26
27
switch
($a_type)
28
{
29
case
'frm_post'
:
30
require_once
'Services/Html/classes/class.ilHtmlForumPostPurifier.php'
;
31
return
new
ilHtmlForumPostPurifier
();
32
break
;
33
34
case
'qpl_usersolution'
:
35
require_once
'Modules/TestQuestionPool/classes/class.ilAssHtmlUserSolutionPurifier.php'
;
36
return
new
ilAssHtmlUserSolutionPurifier
();
37
break
;
38
}
39
40
require_once
'Services/Html/exceptions/class.ilHtmlPurifierNotFoundException.php'
;
41
throw
new
ilHtmlPurifierNotFoundException
(sprintf($lng->txt(
'frm_purifier_not_implemented_for_type_x'
), $a_type));
42
}
43
}
44
?>
ilHtmlForumPostPurifier
Concrete class for sanitizing html of forum posts.
Definition:
class.ilHtmlForumPostPurifier.php:13
ilHtmlPurifierFactory
Factory for creating purifier instances.
Definition:
class.ilHtmlPurifierFactory.php:11
ilHtmlPurifierNotFoundException
Class for html related exception handling in ILIAS.
Definition:
class.ilHtmlPurifierNotFoundException.php:13
ilHtmlPurifierFactory\_getInstanceByType
static _getInstanceByType($a_type)
Factory method for creating purifier instances.
Definition:
class.ilHtmlPurifierFactory.php:23
ilAssHtmlUserSolutionPurifier
Definition:
class.ilAssHtmlUserSolutionPurifier.php:12
$lng
global $lng
Definition:
privfeed.php:40
Services
Html
classes
class.ilHtmlPurifierFactory.php
Generated on Mon Dec 21 2020 19:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)