ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWebDAVMountInstructionsHtmlDocumentProcessor Class Reference
+ Inheritance diagram for ilWebDAVMountInstructionsHtmlDocumentProcessor:
+ Collaboration diagram for ilWebDAVMountInstructionsHtmlDocumentProcessor:

Public Member Functions

 __construct (protected ilHtmlPurifierInterface $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)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVMountInstructionsHtmlDocumentProcessor::__construct ( protected ilHtmlPurifierInterface  $document_purifier)

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

24 {
25 }

Member Function Documentation

◆ processMountInstructions()

ilWebDAVMountInstructionsHtmlDocumentProcessor::processMountInstructions ( string  $a_raw_mount_instructions)

Implements ilWebDAVMountInstructionsDocumentProcessor.

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

27 : array
28 {
29 $purified_html_content = $this->document_purifier->purify($a_raw_mount_instructions);
30
31 $html_validator = new ilWebDAVMountInstructionsDocumentsContainsHtmlValidator($purified_html_content);
32 if (!$html_validator->isValid()) {
33 $purified_html_content = nl2br($purified_html_content);
34 }
35
36 return $this->parseInstructionsToAssocArray($purified_html_content);
37 }

References ilWebDAVMountInstructionsDocumentProcessorBase\parseInstructionsToAssocArray().

+ Here is the call graph for this function:

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