19 declare(strict_types=1);
29 return new class (...$indices) extends
Tag {
39 $indices = [12, 0, -3, 99999];
40 $tag = $this->
getTag(...$indices);
43 iterator_to_array($tag->indices())
49 $tag_without_indices = $this->
getTag();
50 $tag_with_indices = $this->
getTag(6);
52 $this->assertFalse($tag_without_indices->isRestrictedToIndices());
53 $this->assertTrue($tag_with_indices->isRestrictedToIndices());
__construct()
Constructor setup ILIAS global object public.
__construct(Container $dic, ilPlugin $plugin)