mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
parent
d5e2f92aa9
commit
177fafaa56
@ -5,19 +5,13 @@ namespace Icinga\Web\Hook;
|
|||||||
|
|
||||||
use ErrorException;
|
use ErrorException;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Icinga\Application\Icinga;
|
|
||||||
use Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
use Icinga\Exception\IcingaException;
|
use Icinga\Exception\IcingaException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Icinga Web Ticket Hook base class
|
* Base class for ticket hooks
|
||||||
*
|
*
|
||||||
* Extend this class if you want to integrate your ticketing solution nicely into
|
* Extend this class if you want to integrate your ticketing solution Icinga Web 2
|
||||||
* Icinga Web
|
|
||||||
*
|
|
||||||
* @copyright Copyright (c) 2013 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
|
|
||||||
*/
|
*/
|
||||||
abstract class TicketHook
|
abstract class TicketHook
|
||||||
{
|
{
|
||||||
@ -29,10 +23,9 @@ abstract class TicketHook
|
|||||||
protected $lastError;
|
protected $lastError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor must live without arguments right now
|
* Create a new ticket hook
|
||||||
*
|
*
|
||||||
* Therefore the constructor is final, we might change our opinion about
|
* @see init() For hook initialization.
|
||||||
* this one far day
|
|
||||||
*/
|
*/
|
||||||
final public function __construct()
|
final public function __construct()
|
||||||
{
|
{
|
||||||
@ -40,7 +33,7 @@ abstract class TicketHook
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrite this function if you want to do some initialization stuff
|
* Overwrite this function for hook initialization, e.g. loading the hook's config
|
||||||
*/
|
*/
|
||||||
protected function init()
|
protected function init()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user