ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 

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.

References ilWebDAVMountInstructionsDocumentProcessorBase\parseInstructionsToAssocArray().

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  }
+ Here is the call graph for this function:

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