ILIAS  eassessment Revision 61809
 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.

{
global $lng;
require_once 'Services/Html/exceptions/class.ilHtmlPurifierNotFoundException.php';
throw new ilHtmlPurifierNotFoundException(sprintf($lng->txt('frm_purifier_not_implemented_for_type_x'), $a_type));
}

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