ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilWebLinkDraftItemsContainer.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
28 {
32  protected array $items;
33 
37  public function __construct(array $items = [])
38  {
39  parent::__construct($items);
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...