ILIAS  release_7 Revision v7.30-3-g800a261c036
Mode.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
7use \ILIAS\UI\Component\Component;
8
12interface Mode extends Component
13{
19 public function withActive($label);
20
26 public function getActive();
27
33 public function getLabelledActions();
34
40 public function getAriaLabel();
41}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This describes a Mode Control.
Definition: Mode.php:13
getActive()
get the label of the currently active/engaged button of the mode control
withActive($label)
set the currently active/engaged Button by label.
getLabelledActions()
Get the array containing the actions and labels of the mode control.
getAriaLabel()
Get the aria-label on the Viewcontrol.