ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
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
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
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
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilHtmlPurifierFactory.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilHtmlPurifierFactory
9
{
16
public
static
function
_getInstanceByType
(
string
$type
) :
ilHtmlPurifierInterface
17
{
18
global
$DIC
;
19
20
switch
($type) {
21
case
'frm_post'
:
22
return
new
ilHtmlForumPostPurifier
();
23
break
;
24
25
case
'qpl_usersolution'
:
26
return
new
ilAssHtmlUserSolutionPurifier
();
27
break
;
28
}
29
30
throw
new
ilHtmlPurifierNotFoundException
(sprintf(
31
$DIC->language()->txt(
'frm_purifier_not_implemented_for_type_x'
),
32
$type
33
));
34
}
35
}
ilHtmlForumPostPurifier
Concrete class for sanitizing html of forum posts.
Definition:
class.ilHtmlForumPostPurifier.php:8
$type
$type
Definition:
proxy_ylocal.php:10
ilHtmlPurifierFactory
Factory for creating purifier instances.
Definition:
class.ilHtmlPurifierFactory.php:8
ilHtmlPurifierNotFoundException
Class for html related exception handling in ILIAS.
Definition:
class.ilHtmlPurifierNotFoundException.php:8
ilHtmlPurifierInterface
Interface for html sanitizing functionality.
Definition:
interface.ilHtmlPurifierInterface.php:8
$DIC
global $DIC
Definition:
goto.php:24
ilAssHtmlUserSolutionPurifier
Definition:
class.ilAssHtmlUserSolutionPurifier.php:12
ilHtmlPurifierFactory\_getInstanceByType
static _getInstanceByType(string $type)
Factory method for creating purifier instances.
Definition:
class.ilHtmlPurifierFactory.php:16
Services
Html
classes
class.ilHtmlPurifierFactory.php
Generated on Sat Apr 5 2025 21:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)