ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebLinkDraftItemsContainer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28{
32 protected array $items;
33
37 public function __construct(array $items = [])
38 {
40 }
41
42 public function addItem(ilWebLinkDraftItem $item): void
43 {
44 $this->items[] = $item;
45 }
46
50 public function getItems(): array
51 {
52 return $this->items;
53 }
54
55 public function getFirstItem(): ?ilWebLinkDraftItem
56 {
57 return $this->items[0] ?? null;
58 }
59}
Base container class for Web Link items.
Draft class for creating and updating a Web Link item.
Container class for drafted Web Link items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc