ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilWebDAVBaseMountInstructions.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
__construct(protected ilWebDAVMountInstructionsRepository $repo, protected ilWebDAVUriBuilder $uri_builder, protected ilSetting $settings, protected string $language)
getMountInstructionsAsArray(array $mount_instructions=[])
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
fillPlaceholdersForMountInstructions(array $mount_instructions)