|
ILIAS
eassessment Revision 61809
|
Abstract class wrapping the HTMLPurifier instance. More...
Inheritance diagram for ilHtmlPurifierAbstractLibWrapper:
Collaboration diagram for ilHtmlPurifierAbstractLibWrapper:Public Member Functions | |
| __construct () | |
| Constructor. | |
| purify ($a_html, $a_config=null) | |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. | |
| purifyArray (Array $a_array_of_html, $a_config=null) | |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. | |
Public Member Functions inherited from ilHtmlPurifierInterface | |
| purify ($a_html) | |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. | |
| purifyArray (Array $a_array_of_html) | |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. | |
Static Public Member Functions | |
| static | _getCacheDirectory () |
| Get the directory for HTMLPurifier cache files. | |
Protected Member Functions | |
| getPurifierConfigInstance () | |
| Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations. | |
| setPurifier (HTMLPurifier $oPurifier) | |
| Set the purifier by subclass. | |
| getPurifier () | |
| Get the purifier. | |
| removeUnsupportedElements ($a_array) | |
| Removes all unsupported elements. | |
Protected Attributes | |
| $oPurifier = null | |
Abstract class wrapping the HTMLPurifier instance.
Definition at line 15 of file class.ilHtmlPurifierAbstractLibWrapper.php.
| ilHtmlPurifierAbstractLibWrapper::__construct | ( | ) |
Constructor.
public
Definition at line 34 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References getPurifierConfigInstance(), HTMLPurifier(), and setPurifier().
Here is the call graph for this function:
|
staticfinal |
Get the directory for HTMLPurifier cache files.
Definition at line 117 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References ilUtil\getDataDir(), and ilUtil\makeDirParents().
Here is the call graph for this function:
|
protected |
Get the purifier.
Definition at line 102 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $oPurifier.
|
abstractprotected |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations.
protected
Referenced by __construct().
Here is the caller graph for this function:
|
final |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
public
| string | $a_html | HTML snippet/document |
Definition at line 50 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
final |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
public
| array | $a_array_of_html | HTML snippet/document |
Definition at line 64 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
finalprotected |
Removes all unsupported elements.
| Array | $a_array | array of all elements |
Definition at line 137 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
protected |
Set the purifier by subclass.
| HTMLPurifier | $oPurifier | Instance of HTMLPurifier |
Definition at line 88 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $oPurifier.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 26 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by getPurifier(), and setPurifier().