ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Secondary.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
26 
31 abstract class Secondary implements C\Panel\Secondary\Secondary
32 {
33  use ComponentHelper;
34  use HasViewControls;
35 
36  protected string $title;
37  protected ?C\Dropdown\Standard $actions = null;
38  protected ?C\Button\Shy $footer_component = null;
39 
43  public function getTitle(): string
44  {
45  return $this->title;
46  }
47 
51  public function withActions(C\Dropdown\Standard $actions): C\Panel\Secondary\Secondary
52  {
53  $clone = clone $this;
54  $clone->actions = $actions;
55  return $clone;
56  }
57 
61  public function getActions(): ?C\Dropdown\Standard
62  {
63  return $this->actions;
64  }
65 
69  public function withFooter(C\Button\Shy $component): C\Panel\Secondary\Secondary
70  {
71  $clone = clone $this;
72  $clone->footer_component = $component;
73  return $clone;
74  }
75 
79  public function getFooter(): ?C\Button\Shy
80  {
82  }
83 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
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...
Definition: Bulky.php:21
trait HasViewControls
Trait for panels supporting view controls.
getActions()
Gets the action drop down to be displayed on the right of the title.
Definition: Secondary.php:61
withActions(C\Dropdown\Standard $actions)
Sets the action drop down to be displayed on the right of the title.
Definition: Secondary.php:51