ILIAS  release_7 Revision v7.30-3-g800a261c036
Section.php
Go to the documentation of this file.
1<?php
2/*Copyright (c) 2017 Jesús López <lopez@leifos.de> Extended GPL, see docs/LICENSE. */
3
5
8
10{
12
14 protected $button;
15 protected $next_action;
16
18 {
19 if (!$button instanceof \ILIAS\UI\Component\Button\Month) {
20 $this->checkArgInstanceOf("button", $button, \ILIAS\UI\Component\Button\Button::class);
21 }
22 $this->previous_action = $previous_action;
23 $this->button = $button;
24 $this->next_action = $next_action;
25 }
26
32 public function getPreviousActions()
33 {
35 }
36
42 public function getNextActions()
43 {
44 return $this->next_action;
45 }
46
52 public function getSelectorButton()
53 {
54 return $this->button;
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
getSelectorButton()
Returns the Default- or Split-Button placed in the middle of the control.
Definition: Section.php:52
getNextActions()
Returns the action executed by clicking on next.
Definition: Section.php:42
__construct(C\Button\Button $previous_action, \ILIAS\UI\Component\Component $button, C\Button\Button $next_action)
Definition: Section.php:17
getPreviousActions()
Returns the action executed by clicking on previous.
Definition: Section.php:32
A component is the most general form of an entity in the UI.
Definition: Component.php:14
trait ComponentHelper
Provides common functionality for component implementations.
checkArgInstanceOf($which, $value, $class)
Throw an InvalidArgumentException if $value is not an instance of $class.
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.