ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Listing.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
26 
31 abstract 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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(string $title, array $item_groups)
Definition: Listing.php:46