mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
451be1e97f
commit
6481e97565
23
application/views/helpers/CreateTicketLinks.php
Normal file
23
application/views/helpers/CreateTicketLinks.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper for creating ticket links from ticket hooks
|
||||||
|
*/
|
||||||
|
class Zend_View_Helper_CreateTicketLinks extends Zend_View_Helper_Abstract
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Create ticket links form ticket hooks
|
||||||
|
*
|
||||||
|
* @param string $text
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
* @see \Icinga\Web\Hook\TicketHook::createLinks()
|
||||||
|
*/
|
||||||
|
public function createTicketLinks($text)
|
||||||
|
{
|
||||||
|
$tickets = $this->view->tickets;
|
||||||
|
/** @var \Icinga\Web\Hook\TicketHook $tickets */
|
||||||
|
return isset($tickets) ? $tickets->createLinks($text) : $text;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user