ILIAS  release_8 Revision v8.24
ilHtmlPurifierFactory Class Reference

Factory for creating purifier instances. More...

+ Collaboration diagram for ilHtmlPurifierFactory:

Static Public Member Functions

static getInstanceByType (string $type)
 

Detailed Description

Factory for creating purifier instances.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 25 of file class.ilHtmlPurifierFactory.php.

Member Function Documentation

◆ getInstanceByType()

static ilHtmlPurifierFactory::getInstanceByType ( string  $type)
static

Definition at line 27 of file class.ilHtmlPurifierFactory.php.

28 {
29 global $DIC;
30
31 switch ($type) {
32 case 'frm_post':
33 return new ilHtmlForumPostPurifier();
34
35 case 'qpl_usersolution':
37 }
38
39 throw new ilHtmlPurifierNotFoundException(sprintf(
40 $DIC->language()->txt('frm_purifier_not_implemented_for_type_x'),
41 $type
42 ));
43 }
Concrete class for sanitizing html of forum posts.
Class ilHtmlPurifierNotFoundException.
global $DIC
Definition: feed.php:28
Interface for html sanitizing functionality.
$type

References $DIC, and $type.

Referenced by ilForumThreadFormGUI\addMessageInput(), ilAnswerFrequencyStatisticTableGUI\fillRow(), ilObjTest\getHtmlQuestionContentPurifier(), assQuestion\getHtmlQuestionContentPurifier(), ilAssQuestionHint\getHtmlQuestionContentPurifier(), assQuestion\getHtmlUserSolutionPurifier(), ilForumXMLParser\handlerEndTag(), and ilObjForumGUI\initReplyEditForm().

+ Here is the caller graph for this function:

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