2014-03-04 13:50:49 +01:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-03-04 13:50:49 +01:00
|
|
|
|
|
|
|
namespace Icinga\Web\Hook;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Icinga Web Ticket Hook base class
|
|
|
|
*
|
|
|
|
* Extend this class if you want to integrate your ticketing solution nicely into
|
|
|
|
* 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
|
|
|
|
*/
|
2014-08-26 14:29:55 +02:00
|
|
|
abstract class TicketHook
|
2014-03-04 13:50:49 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Constructor must live without arguments right now
|
|
|
|
*
|
|
|
|
* Therefore the constructor is final, we might change our opinion about
|
|
|
|
* this one far day
|
|
|
|
*/
|
|
|
|
final public function __construct()
|
|
|
|
{
|
|
|
|
$this->init();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Overwrite this function if you want to do some initialization stuff
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function init()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract public function getPattern();
|
|
|
|
|
|
|
|
abstract public function createLink($match);
|
|
|
|
|
|
|
|
}
|