ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Secondary.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 Secondary implements C\Panel\Secondary\Secondary
32{
33 use ComponentHelper;
35
36 protected string $title;
37 protected ?C\Dropdown\Standard $actions = null;
39
43 public function getTitle(): string
44 {
45 return $this->title;
46 }
47
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}
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
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.