19 declare(strict_types=1);
38 public function name():
string 64 $subs = $root->getSubElements();
65 $this->assertSame($struct1, $subs->current());
67 $this->assertSame($struct2, $subs->current());
69 $this->assertNull($subs->current());
71 $this->assertSame($root, $struct1->getSuperElement());
72 $this->assertSame($struct11, $struct1->getSubElements()->current());
80 $this->assertSame(NoID::ROOT, $root->getMDID());
83 $this->assertTrue($root->isRoot());
84 $this->assertFalse($not_root->isRoot());
94 $this->assertSame($sub2, $el->getSubElement(
'sub 2'));
95 $this->assertSame($sub3, $el->getSubElement(
'sub 3'));
96 $this->assertSame($sub1, $el->getSubElement(
'sub 1'));
97 $this->assertNull($el->getSubElement(
'something else'));
__construct()
Constructor setup ILIAS global object public.