ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
6 use ILIAS\UI\Component as C;
8 
9 class Section implements C\ViewControl\Section
10 {
11  use ComponentHelper;
12 
13  protected $previous_action;
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 }
Class Factory.
Class BaseForm.
checkArgInstanceOf($which, $value, $class)
Throw an InvalidArgumentException if $value is not an instance of $class.
trait ComponentHelper
Provides common functionality for component implementations.
__construct(C\Button\Button $previous_action, \ILIAS\UI\Component\Component $button, C\Button\Button $next_action)
Definition: Section.php:17
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
getPreviousActions()
Returns the action executed by clicking on previous.
Definition: Section.php:32