ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilWebDAVBaseMountInstructions.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 {
25  protected ilSetting $settings;
26  protected string $language;
27 
28  public function __construct(
30  ilWebDAVUriBuilder $uri_builder,
31  ilSetting $settings,
32  string $language
33  ) {
34  $this->repo = $repo;
35  $this->uri_builder = $uri_builder;
36  $this->settings = $settings;
37  $this->language = $language;
38  }
39 
40  public function getMountInstructionsAsArray(array $mount_instructions = []): array
41  {
42  if (count($mount_instructions) == 0) {
43  $document = $this->repo->getMountInstructionsByLanguage($this->language);
44  $processed = $document->getProcessedInstructions();
45  $mount_instructions = json_decode($processed, true);
46  }
47 
48  return $this->fillPlaceholdersForMountInstructions($mount_instructions);
49  }
50 
51  abstract protected function fillPlaceholdersForMountInstructions(array $mount_instructions): array ;
52 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilWebDAVMountInstructionsRepository $repo
getMountInstructionsAsArray(array $mount_instructions=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilWebDAVMountInstructionsRepository $repo, ilWebDAVUriBuilder $uri_builder, ilSetting $settings, string $language)
fillPlaceholdersForMountInstructions(array $mount_instructions)