ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilWebDAVBaseMountInstructions.php
Go to the documentation of this file.
1<?php
2
4
6{
8 protected $repo;
9
11 protected $uri_builder;
12
14 protected $settings;
15
17 protected $language;
18
19 public function __construct(
21 ilWebDAVUriBuilder $a_uri_builder,
22 ilSetting $a_settings,
23 string $language
24 ) {
25 $this->repo = $a_repo;
26 $this->uri_builder = $a_uri_builder;
27 $this->settings = $a_settings;
28 $this->language = $language;
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}
An exception for terminatinating execution or to throw for unit testing.
ILIAS Setting Class.
__construct(ilWebDAVMountInstructionsRepository $a_repo, ilWebDAVUriBuilder $a_uri_builder, ilSetting $a_settings, string $language)
getMountInstructionsAsArray(array $mount_instructions=[])
fillPlaceholdersForMountInstructions(array $mount_instructions)
Interface ilWebDAVMountInstructionsRepository.
language()
Definition: language.php:2
settings()
Definition: settings.php:2