ILIAS  release_8 Revision v8.26
ilWebDAVMountInstructionsHtmlDocumentProcessor Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebDAVMountInstructionsHtmlDocumentProcessor:
+ Collaboration diagram for ilWebDAVMountInstructionsHtmlDocumentProcessor:

Public Member Functions

 __construct (ilHtmlPurifierInterface $a_document_purifier)
 
 processMountInstructions (string $a_raw_mount_instructions)
 
- Public Member Functions inherited from ilWebDAVMountInstructionsDocumentProcessorBase
 parseInstructionsToAssocArray (string $a_raw_mount_instructions)
 
 processMountInstructions (string $a_raw_mount_instructions)
 

Protected Attributes

ilHtmlPurifierInterface $document_purifier
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVMountInstructionsHtmlDocumentProcessor::__construct ( ilHtmlPurifierInterface  $a_document_purifier)

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

26 {
27 $this->document_purifier = $a_document_purifier;
28 }

Member Function Documentation

◆ processMountInstructions()

ilWebDAVMountInstructionsHtmlDocumentProcessor::processMountInstructions ( string  $a_raw_mount_instructions)

Implements ilWebDAVMountInstructionsDocumentProcessor.

Definition at line 30 of file class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php.

30 : array
31 {
32 $purified_html_content = $this->document_purifier->purify($a_raw_mount_instructions);
33
34 $html_validator = new ilWebDAVMountInstructionsDocumentsContainsHtmlValidator($purified_html_content);
35 if (!$html_validator->isValid()) {
36 $purified_html_content = nl2br($purified_html_content);
37 }
38
39 return $this->parseInstructionsToAssocArray($purified_html_content);
40 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilWebDAVMountInstructionsDocumentProcessorBase\parseInstructionsToAssocArray().

+ Here is the call graph for this function:

Field Documentation

◆ $document_purifier

ilHtmlPurifierInterface ilWebDAVMountInstructionsHtmlDocumentProcessor::$document_purifier
protected

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