ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilADTLocalizedTextDefinition.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
13 private $active_languages = [];
14
18 private $default_language = '';
19
23 private $max_length;
24
28 public function getMaxLength() : ?int
29 {
30 return $this->max_length;
31 }
32
36 public function setMaxLength(int $max_length) : void
37 {
38 $this->max_length = $max_length;
39 }
40
44 public function getActiveLanguages()
45 {
47 }
48
49 public function setActiveLanguages(array $active)
50 {
51 $this->active_languages = $active;
52 }
53
57 public function isComparableTo(ilADT $a_adt)
58 {
59 return $a_adt instanceof ilADTLocalizedText;
60 }
61
65 public function getDefaultLanguage() : string
66 {
68 }
69
73 public function setDefaultLanguage(string $default_language) : void
74 {
75 $this->default_language = $default_language;
76 }
77
81 public function supportsTranslations()
82 {
83 return strlen($this->getDefaultLanguage()) > 0 ? true : false;
84 }
85}
An exception for terminatinating execution or to throw for unit testing.
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.
ADT definition base class.
Class ilADTLocalizedText.
ADT base class.
Definition: class.ilADT.php:12