19declare(strict_types=1);
23use PHPUnit\Framework\TestCase;
37 public function txt(
string $key):
string
39 return 'translated ' . $key;
52 protected string $name,
64 public function name(): string
71 public function getSuperElement(): ?BaseElementInterface
76 public function isRoot(): bool
78 return is_null($this->super);
85 $root = $this->getBaseElement(
'root',
null);
86 $high = $this->getBaseElement(
'high', $root);
87 $middle = $this->getBaseElement(
'lifeCycle', $high);
88 return $this->getBaseElement(
'lowElement', $middle);
93 $elements = $this->getElements();
94 $low = $this->getTreeOfBaseElements();
96 'translated meta_low_element',
100 'translated meta_low_element_plural',
101 $elements->name($low,
true)
105 'translated meta_lifecycle',
109 'translated meta_lifecycle_plural',
116 $elements = $this->getElements();
117 $low = $this->getTreeOfBaseElements();
119 'translated meta_high: translated meta_lifecycle: translated meta_low_element',
120 $elements->nameWithParents($low)
123 'translated meta_high: translated meta_lifecycle: translated meta_low_element_plural',
124 $elements->nameWithParents($low,
null,
true)
130 $elements = $this->getElements();
131 $root = $this->getBaseElement(
'root',
null);
133 'translated meta_root',
134 $elements->nameWithParents($root)
137 'translated meta_root_plural',
138 $elements->nameWithParents($root,
null,
true)
141 'translated meta_root',
142 $elements->nameWithParents($root,
null,
false,
true)
148 $elements = $this->getElements();
149 $low = $this->getTreeOfBaseElements();
151 'translated meta_high: translated meta_lifecycle',
152 $elements->nameWithParents($low,
null,
false,
true)
155 'translated meta_high: translated meta_lifecycle',
156 $elements->nameWithParents($low,
null,
true,
true)
162 $elements = $this->getElements();
163 $low = $this->getTreeOfBaseElements();
167 'translated meta_lifecycle: translated meta_low_element',
168 $elements->nameWithParents($low, $high)
171 'translated meta_lifecycle: translated meta_low_element_plural',
172 $elements->nameWithParents($low, $high,
true)
175 'translated meta_low_element',
179 'translated meta_lifecycle',
180 $elements->nameWithParents($low, $high,
true,
true)
183 'translated meta_low_element_plural',
184 $elements->nameWithParents($low,
$lifecycle,
true,
true)
__construct()
Constructor setup ILIAS global object @access public.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...