ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Listing.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Implementation\Component\ComponentHelper;
26
31abstract class Listing implements C\Panel\Listing\Listing
32{
33 use ComponentHelper;
34
35 protected string $title;
36 protected ?C\Dropdown\Standard $actions = null;
37
41 protected array $item_groups = array();
42
46 public function __construct(string $title, array $item_groups)
47 {
48 $this->title = $title;
49 $this->item_groups = $item_groups;
50 }
51
55 public function getTitle(): string
56 {
57 return $this->title;
58 }
59
63 public function getItemGroups(): array
64 {
65 return $this->item_groups;
66 }
67
71 public function withActions(C\Dropdown\Standard $actions): C\Panel\Listing\Listing
72 {
73 $clone = clone $this;
74 $clone->actions = $actions;
75 return $clone;
76 }
77
81 public function getActions(): ?C\Dropdown\Standard
82 {
83 return $this->actions;
84 }
85}
__construct(string $title, array $item_groups)
Definition: Listing.php:46