ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
FakeLanguageObject.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
32 private int $uninstall_calls = 0;
33
40 public function __construct(
41 private readonly bool $is_system_language,
42 private readonly bool $is_user_language,
43 private readonly bool $is_installed,
44 private readonly string $uninstall_return_value = 'uninstalled',
45 private readonly array $unwritten_overlay_modules = [],
46 ) {
47 }
48
49 public function isSystemLanguage(): bool
50 {
51 return $this->is_system_language;
52 }
53
54 public function isUserLanguage(): bool
55 {
56 return $this->is_user_language;
57 }
58
59 public function isInstalled(): bool
60 {
61 return $this->is_installed;
62 }
63
64 public function uninstall(): string
65 {
66 $this->uninstall_calls++;
67
68 return $this->uninstall_return_value;
69 }
70
74 public function getModulesWithUnwrittenOverlay(): array
75 {
76 return $this->unwritten_overlay_modules;
77 }
78
79 public function uninstallCallCount(): int
80 {
82 }
83}
Stand-in for \ilObjLanguage, which needs the global $DIC; injected via UninstallLanguage's $obj_langu...
__construct(private readonly bool $is_system_language, private readonly bool $is_user_language, private readonly bool $is_installed, private readonly string $uninstall_return_value='uninstalled', private readonly array $unwritten_overlay_modules=[],)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...