ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Button.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
8
18 public function getLabel();
19
26 public function withLabel($label);
27
33 public function getAction();
34
40 public function isActive();
41
50 public function withUnavailableAction();
51}
An exception for terminatinating execution or to throw for unit testing.
This describes commonalities between standard and primary buttons.
Definition: Button.php:12
isActive()
Get to know if the button is activated.
getLabel()
Get the label on the button.
withLabel($label)
Get a button like this, but with an additional/replaced label.
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
getAction()
Get the action of the button.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.