ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilHtmlPurifierFactory Class Reference

Factory for creating purifier instances. More...

+ Collaboration diagram for ilHtmlPurifierFactory:

Static Public Member Functions

static _getInstanceByType ($a_type)
 Factory method for creating purifier instances.

Detailed Description

Factory for creating purifier instances.

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

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

Member Function Documentation

static ilHtmlPurifierFactory::_getInstanceByType (   $a_type)
static

Factory method for creating purifier instances.

public

Parameters
string$a_typetype for the concrete purifier instance
Returns
ilHtmlPurifierInterface A purifier instance
Exceptions
ilHtmlPurifierNotFoundException

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

References $lng.

Referenced by ilObjForumGUI\initReplyEditForm(), and ilObjForumGUI\initTopicCreateForm().

{
global $lng;
switch($a_type)
{
case 'frm_post':
require_once 'Services/Html/classes/class.ilHtmlForumPostPurifier.php';
break;
}
require_once 'Services/Html/exceptions/class.ilHtmlPurifierNotFoundException.php';
throw new ilHtmlPurifierNotFoundException(sprintf($lng->txt('frm_purifier_not_implemented_for_type_x'), $a_type));
}

+ Here is the caller graph for this function:


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