ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
$DIC
;
26
27
switch
(
$a_type
) {
28
case
'frm_post'
:
29
require_once
'Services/Html/classes/class.ilHtmlForumPostPurifier.php'
;
30
return
new
ilHtmlForumPostPurifier
();
31
break
;
32
33
case
'qpl_usersolution'
:
34
require_once
'Modules/TestQuestionPool/classes/class.ilAssHtmlUserSolutionPurifier.php'
;
35
return
new
ilAssHtmlUserSolutionPurifier
();
36
break
;
37
}
38
39
require_once
'Services/Html/exceptions/class.ilHtmlPurifierNotFoundException.php'
;
40
throw
new
ilHtmlPurifierNotFoundException
(sprintf($DIC->language()->txt(
'frm_purifier_not_implemented_for_type_x'
),
$a_type
));
41
}
42
}
ilHtmlForumPostPurifier
Concrete class for sanitizing html of forum posts.
Definition:
class.ilHtmlForumPostPurifier.php:13
$DIC
global $DIC
Definition:
saml.php:7
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
$a_type
$a_type
Definition:
workflow.php:92
ilHtmlPurifierFactory\_getInstanceByType
static _getInstanceByType($a_type)
Factory method for creating purifier instances.
Definition:
class.ilHtmlPurifierFactory.php:23
ilAssHtmlUserSolutionPurifier
Definition:
class.ilAssHtmlUserSolutionPurifier.php:12
Services
Html
classes
class.ilHtmlPurifierFactory.php
Generated on Sat Jan 18 2025 19:01:32 for ILIAS by
1.8.13 (using
Doxyfile
)