ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
FakeRemoveLocalLanguageChangesObject.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
33
38 public function __construct(
39 private readonly bool $is_installed,
40 private readonly bool $remove_local_changes_return_value = true,
41 private readonly array $modules_with_unwritten_overlay = [],
42 ) {
43 }
44
45 public function isInstalled(): bool
46 {
47 return $this->is_installed;
48 }
49
50 public function removeLocalChanges(): bool
51 {
52 $this->remove_local_changes_calls++;
53
54 return $this->remove_local_changes_return_value;
55 }
56
60 public function getModulesWithUnwrittenOverlay(): array
61 {
62 return $this->modules_with_unwritten_overlay;
63 }
64
66 {
68 }
69}
Stand-in for \ilObjLanguage, which needs the global $DIC; injected via RemoveLocalLanguageChanges's $...
__construct(private readonly bool $is_installed, private readonly bool $remove_local_changes_return_value=true, private readonly array $modules_with_unwritten_overlay=[],)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...