ILIAS  release_7 Revision v7.30-3-g800a261c036
Secondary.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4
6
10
15abstract class Secondary implements C\Panel\Secondary\Secondary
16{
19
23 protected $title;
24
28 protected $actions = null;
29
30
34 protected $footer_component = null;
35
41 public function getTitle() : string
42 {
43 return $this->title;
44 }
45
52 {
53 $clone = clone $this;
54 $clone->actions = $actions;
55 return $clone;
56 }
57
62 public function getActions() : ?C\Dropdown\Standard
63 {
64 return $this->actions;
65 }
66
70 public function withFooter(C\Button\Shy $component) : C\Panel\Secondary\Secondary
71 {
72 $clone = clone $this;
73 $clone->footer_component = $component;
74 return $clone;
75 }
76
80 public function getFooter() : ?C\Button\Shy
81 {
83 }
84}
An exception for terminatinating execution or to throw for unit testing.
getActions()
Gets the action drop down to be displayed on the right of the title.
Definition: Secondary.php:62
withActions(C\Dropdown\Standard $actions)
Sets the action drop down to be displayed on the right of the title.
Definition: Secondary.php:51
trait HasViewControls
Trait for panels supporting view controls.
trait ComponentHelper
Provides common functionality for component implementations.