|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Abstract class wrapping the HTMLPurifier instance. More...
Inheritance diagram for ilHtmlPurifierAbstractLibWrapper:
Collaboration diagram for ilHtmlPurifierAbstractLibWrapper:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| purify ($a_html, $a_config=null) | |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. More... | |
| purifyArray (Array $a_array_of_html, $a_config=null) | |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More... | |
Public Member Functions inherited from ilHtmlPurifierInterface | |
| purify ($a_html) | |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. More... | |
| purifyArray (Array $a_array_of_html) | |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More... | |
Static Public Member Functions | |
| static | _getCacheDirectory () |
| Get the directory for HTMLPurifier cache files. More... | |
Protected Member Functions | |
| getPurifierConfigInstance () | |
| Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations. More... | |
| setPurifier (HTMLPurifier $oPurifier) | |
| Set the purifier by subclass. More... | |
| getPurifier () | |
| Get the purifier. More... | |
| removeUnsupportedElements ($a_array) | |
| Removes all unsupported elements. More... | |
| makeElementListTinyMceCompliant ($elements) | |
Protected Attributes | |
| $oPurifier = null | |
Abstract class wrapping the HTMLPurifier instance.
Definition at line 15 of file class.ilHtmlPurifierAbstractLibWrapper.php.
| ilHtmlPurifierAbstractLibWrapper::__construct | ( | ) |
Constructor.
@access public
Reimplemented in ilHtmlForumPostPurifier.
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().
Referenced by ilAssHtmlPurifier\getPurifierConfigInstance(), and ilHtmlForumPostPurifier\getPurifierConfigInstance().
Here is the call graph for this function:
Here is the caller 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.
@abstract @access protected
Reimplemented in ilAssHtmlPurifier, and ilHtmlForumPostPurifier.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 165 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by ilAssHtmlPurifier\getAllowedElements(), and ilHtmlForumPostPurifier\getPurifierConfigInstance().
Here is the caller graph for this function:
|
final |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
@access 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.
@access 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.
Referenced by ilAssHtmlPurifier\getAllowedElements(), and ilHtmlForumPostPurifier\getPurifierConfigInstance().
Here is the caller graph for this function:
|
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().