mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Rename hook base classes
Adding suffix "Hook" to every base class. This simplifies development because you don't need to alias bases classes in your concrete hook classes refs #6928
This commit is contained in:
parent
3a85a45ef2
commit
376e9aa160
@ -14,7 +14,7 @@ namespace Icinga\Web\Hook;
|
|||||||
* @author Icinga-Web Team <info@icinga.org>
|
* @author Icinga-Web Team <info@icinga.org>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
||||||
*/
|
*/
|
||||||
class Grapher
|
class GrapherHook
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Whether this grapher provides preview images
|
* Whether this grapher provides preview images
|
@ -14,7 +14,7 @@ namespace Icinga\Web\Hook;
|
|||||||
* @author Icinga-Web Team <info@icinga.org>
|
* @author Icinga-Web Team <info@icinga.org>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
||||||
*/
|
*/
|
||||||
abstract class Ticket
|
abstract class TicketHook
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor must live without arguments right now
|
* Constructor must live without arguments right now
|
@ -10,7 +10,7 @@ use \Zend_View;
|
|||||||
/**
|
/**
|
||||||
* Hook to extend topbar items
|
* Hook to extend topbar items
|
||||||
*/
|
*/
|
||||||
interface TopBar
|
abstract class TopBarHook
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Function to generate top bar content
|
* Function to generate top bar content
|
||||||
@ -20,5 +20,5 @@ interface TopBar
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getHtml($request, $view);
|
abstract public function getHtml($request, $view);
|
||||||
}
|
}
|
@ -9,7 +9,7 @@ use Icinga\Module\Monitoring\Timeline\TimeRange;
|
|||||||
/**
|
/**
|
||||||
* Base class for TimeLine providers
|
* Base class for TimeLine providers
|
||||||
*/
|
*/
|
||||||
abstract class TimelineProvider
|
abstract class TimelineProviderHook
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Return the names by which to group entries
|
* Return the names by which to group entries
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Monitoring\Web\Hook;
|
namespace Icinga\Module\Monitoring\Web\Hook;
|
||||||
|
|
||||||
use Icinga\Web\Hook\TopBar as IcingaTopBar;
|
use Icinga\Web\Hook\TopBarHook;
|
||||||
use Icinga\Module\Monitoring\DataView\StatusSummary as StatusSummaryView;
|
use Icinga\Module\Monitoring\DataView\StatusSummary as StatusSummaryView;
|
||||||
use Icinga\Web\Request;
|
use Icinga\Web\Request;
|
||||||
use Zend_View;
|
use Zend_View;
|
||||||
@ -12,7 +12,7 @@ use Zend_View;
|
|||||||
/**
|
/**
|
||||||
* Render status summary into the topbar of icinga
|
* Render status summary into the topbar of icinga
|
||||||
*/
|
*/
|
||||||
class TopBar implements IcingaTopBar
|
class TopBar extends TopBarHook
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Function to generate top bar content
|
* Function to generate top bar content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user