ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebDAVBaseMountInstructions.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(
25 protected ilWebDAVUriBuilder $uri_builder,
26 protected ilSetting $settings,
27 protected string $language
28 ) {
29 }
30
31 public function getMountInstructionsAsArray(array $mount_instructions = []): array
32 {
33 if (count($mount_instructions) == 0) {
34 $document = $this->repo->getMountInstructionsByLanguage($this->language);
35 $processed = $document->getProcessedInstructions();
36 $mount_instructions = json_decode($processed, true);
37 }
38
39 return $this->fillPlaceholdersForMountInstructions($mount_instructions);
40 }
41
42 abstract protected function fillPlaceholdersForMountInstructions(array $mount_instructions): array;
43}
ILIAS Setting Class.
__construct(protected ilWebDAVMountInstructionsRepository $repo, protected ilWebDAVUriBuilder $uri_builder, protected ilSetting $settings, protected string $language)
getMountInstructionsAsArray(array $mount_instructions=[])
fillPlaceholdersForMountInstructions(array $mount_instructions)