ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilADTLocalizedTextDefinition.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
30  private array $active_languages = [];
31  private string $default_language = '';
32  private ?int $max_length = null;
33 
34  private bool $multilingual_value_support = false;
35 
36  public function getMaxLength(): ?int
37  {
38  return $this->max_length;
39  }
40 
41  public function setMaxLength(?int $max_length): void
42  {
43  $this->max_length = $max_length;
44  }
45 
46  public function setMultilingualValueSupport(bool $status): void
47  {
48  $this->multilingual_value_support = $status;
49  }
50 
51  public function getMultilingualValueSupport(): bool
52  {
54  }
55 
59  public function getActiveLanguages(): array
60  {
62  }
63 
64  public function setActiveLanguages(array $active): void
65  {
66  $this->active_languages = $active;
67  }
68 
72  public function isComparableTo(ilADT $a_adt): bool
73  {
74  return $a_adt instanceof ilADTLocalizedText;
75  }
76 
80  public function getDefaultLanguage(): string
81  {
83  }
84 
88  public function setDefaultLanguage(string $default_language): void
89  {
90  $this->default_language = $default_language;
91  }
92 
96  public function supportsTranslations(): bool
97  {
98  return strlen($this->getDefaultLanguage()) > 0;
99  }
100 }
ADT base class.
Definition: class.ilADT.php:25
Class ilADTLocalizedText.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ADT definition base class.