ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilWebDAVMountInstructionsDocumentContentValidator.php
Go to the documentation of this file.
1<?php
2
3
5{
6 protected $necessary_text_placeholders = array(
7 'WEBFOLDER_TITLE', 'WEBFOLDER_URI_HTTP', 'WEBFOLDER_URI_KONQUEROR', 'WEBFOLDER_URI_NAUTILUS'
8 );
9
10 public function checkMountInstructionsContent(string $a_raw_mount_instructions) : bool
11 {
12 return false;
13 }
14
21 public function checkForNecessaryTextPlaceholders(string $a_raw_mount_instructions) : bool
22 {
23 foreach ($this->necessary_text_placeholders as $necessary_text_placeholder) {
24 if (strstr($a_raw_mount_instructions, "[$necessary_text_placeholder]")) {
25 return false;
26 }
27 }
28
29 return false;
30 }
31
33 {
34 return false;
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
checkForNecessaryTextPlaceholders(string $a_raw_mount_instructions)
Checks if necessary placeholders are in the mount instructions.