2013-08-08 16:22:22 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-08-08 16:22:22 +02:00
|
|
|
|
|
|
|
namespace Icinga\Web\Widget\Tabextension;
|
|
|
|
|
2014-04-28 14:03:52 +02:00
|
|
|
use Icinga\Web\Widget\Tabs;
|
2013-08-08 16:22:22 +02:00
|
|
|
|
|
|
|
/**
|
2013-08-16 15:05:03 +02:00
|
|
|
* Tabextension interface that allows to extend a tabbar with reusable components
|
|
|
|
*
|
|
|
|
* Tabs can be either extended by creating a `Tabextension` and calling the `apply()` method
|
|
|
|
* or by calling the `\Icinga\Web\Widget\Tabs` `extend()` method and providing
|
|
|
|
* a tab extension
|
|
|
|
*
|
|
|
|
* @see \Icinga\Web\Widget\Tabs::extend()
|
|
|
|
*/
|
2013-08-08 16:22:22 +02:00
|
|
|
interface Tabextension
|
|
|
|
{
|
|
|
|
/**
|
2013-08-16 15:05:03 +02:00
|
|
|
* Apply this tabextension to the provided tabs
|
|
|
|
*
|
|
|
|
* @param Tabs $tabs The tabbar to modify
|
|
|
|
*/
|
2013-08-08 16:22:22 +02:00
|
|
|
public function apply(Tabs $tabs);
|
|
|
|
}
|