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 
This commit is contained in:
Marius Hein 2014-08-26 14:29:55 +02:00
parent 3a85a45ef2
commit 376e9aa160
5 changed files with 7 additions and 7 deletions
library/Icinga/Web/Hook
modules/monitoring/library/Monitoring/Web/Hook

@ -14,7 +14,7 @@ namespace Icinga\Web\Hook;
* @author Icinga-Web Team <info@icinga.org>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
*/
class Grapher
class GrapherHook
{
/**
* Whether this grapher provides preview images

@ -14,7 +14,7 @@ namespace Icinga\Web\Hook;
* @author Icinga-Web Team <info@icinga.org>
* @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

@ -10,7 +10,7 @@ use \Zend_View;
/**
* Hook to extend topbar items
*/
interface TopBar
abstract class TopBarHook
{
/**
* Function to generate top bar content
@ -20,5 +20,5 @@ interface TopBar
*
* @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
*/
abstract class TimelineProvider
abstract class TimelineProviderHook
{
/**
* Return the names by which to group entries

@ -4,7 +4,7 @@
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\Web\Request;
use Zend_View;
@ -12,7 +12,7 @@ use Zend_View;
/**
* Render status summary into the topbar of icinga
*/
class TopBar implements IcingaTopBar
class TopBar extends TopBarHook
{
/**
* Function to generate top bar content